{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}\\file\UsersW$\wrr15\Home\My Documents\My Files\ATANDA AKINWANDE\BCD PAPER\HEALTH ECONOMICS revision\NEW DATA AND PROGRAMS (20171021)\TABLE2&3.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}10 Nov 2017, 14:26:05
{txt}
{com}. use "\\file\UsersW$\wrr15\Home\My Documents\My Files\ATANDA AKINWANDE\BCD PAPER\HEALTH ECONOMICS revision\NEW DATA AND PROGRAMS (20171021)\BCD_dataset_09_11_2017", clear
{txt}
{com}. 
. sort country year
{txt}
{com}. xtset cid year
{res}{txt}{col 8}panel variable:  {res}cid (strongly balanced)
{txt}{col 9}time variable:  {res}{col 25}year, 1995 to 2016
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. replace lhl = log(lhl)
{txt}(392 real changes made)

{com}. 
. 
. ///////////////////////////////////////////////
> ///////////////////  TABLE 2 //////////////////
> ///////////////////////////////////////////////
> 
. reg lhl lprod k pop14 pop65 male llex linfmo, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       383
                                                {txt}F(7, 26)          =  {res}    13.89
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.5168
                                                {txt}Root MSE          =    {res} .31249

{txt}{ralign 78:(Std. Err. adjusted for {res:27} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2} .5123259{col 26}{space 2} .2547442{col 37}{space 1}    2.01{col 46}{space 3}0.055{col 54}{space 4}-.0113083{col 67}{space 3}  1.03596
{txt}{space 11}k {c |}{col 14}{res}{space 2} .0018765{col 26}{space 2} .0178683{col 37}{space 1}    0.11{col 46}{space 3}0.917{col 54}{space 4}-.0348524{col 67}{space 3} .0386055
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2} .0972544{col 26}{space 2} .0330834{col 37}{space 1}    2.94{col 46}{space 3}0.007{col 54}{space 4} .0292504{col 67}{space 3} .1652584
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}  .075885{col 26}{space 2} .0456888{col 37}{space 1}    1.66{col 46}{space 3}0.109{col 54}{space 4}-.0180297{col 67}{space 3} .1697996
{txt}{space 8}male {c |}{col 14}{res}{space 2} .0111588{col 26}{space 2} .1124009{col 37}{space 1}    0.10{col 46}{space 3}0.922{col 54}{space 4}-.2198847{col 67}{space 3} .2422022
{txt}{space 8}llex {c |}{col 14}{res}{space 2}-1.819863{col 26}{space 2} 3.894703{col 37}{space 1}   -0.47{col 46}{space 3}0.644{col 54}{space 4} -9.82554{col 67}{space 3} 6.185815
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2}-.4976518{col 26}{space 2} .1947964{col 37}{space 1}   -2.55{col 46}{space 3}0.017{col 54}{space 4}-.8980616{col 67}{space 3} -.097242
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 5.483434{col 26}{space 2} 13.83834{col 37}{space 1}    0.40{col 46}{space 3}0.695{col 54}{space 4}-22.96168{col 67}{space 3} 33.92855
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.50777148
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       383{col 27}-233.1909{col 38}-93.91161{col 49}     8{col 58} 203.8232{col 69} 235.4075
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 372) = {res}    13.11
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. reg lhl lprod k pop14 pop65 male llex linfmo ltobaco lalcohc, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       261
                                                {txt}F(9, 18)          =  {res}    26.25
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7367
                                                {txt}Root MSE          =    {res} .23544

{txt}{ralign 78:(Std. Err. adjusted for {res:19} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2} .5905858{col 26}{space 2} .1786728{col 37}{space 1}    3.31{col 46}{space 3}0.004{col 54}{space 4} .2152081{col 67}{space 3} .9659635
{txt}{space 11}k {c |}{col 14}{res}{space 2}  .010162{col 26}{space 2} .0147987{col 37}{space 1}    0.69{col 46}{space 3}0.501{col 54}{space 4} -.020929{col 67}{space 3} .0412529
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2} .0673174{col 26}{space 2} .0386389{col 37}{space 1}    1.74{col 46}{space 3}0.099{col 54}{space 4}-.0138599{col 67}{space 3} .1484948
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .0865731{col 26}{space 2} .0440341{col 37}{space 1}    1.97{col 46}{space 3}0.065{col 54}{space 4}-.0059392{col 67}{space 3} .1790853
{txt}{space 8}male {c |}{col 14}{res}{space 2} .1177082{col 26}{space 2} .1488998{col 37}{space 1}    0.79{col 46}{space 3}0.440{col 54}{space 4}-.1951187{col 67}{space 3}  .430535
{txt}{space 8}llex {c |}{col 14}{res}{space 2}-4.996742{col 26}{space 2} 2.601947{col 37}{space 1}   -1.92{col 46}{space 3}0.071{col 54}{space 4}-10.46323{col 67}{space 3} .4697463
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2}-.4986358{col 26}{space 2} .0873273{col 37}{space 1}   -5.71{col 46}{space 3}0.000{col 54}{space 4}-.6821036{col 67}{space 3}-.3151681
{txt}{space 5}ltobaco {c |}{col 14}{res}{space 2}-.2968344{col 26}{space 2} .1782007{col 37}{space 1}   -1.67{col 46}{space 3}0.113{col 54}{space 4}-.6712202{col 67}{space 3} .0775513
{txt}{space 5}lalcohc {c |}{col 14}{res}{space 2} .2197151{col 26}{space 2} .1675519{col 37}{space 1}    1.31{col 46}{space 3}0.206{col 54}{space 4}-.1322984{col 67}{space 3} .5717286
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 15.29118{col 26}{space 2} 9.270272{col 37}{space 1}    1.65{col 46}{space 3}0.116{col 54}{space 4} -4.18494{col 67}{space 3}  34.7673
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.72722427
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       261{col 27}-161.8898{col 38}  12.2408{col 49}    10{col 58}  -4.4816{col 69}  31.1636
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 248) = {res}    25.39
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. reg lhl lprod k pop14 pop65 male llex linfmo ltobaco lalcohc gdpg, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       261
                                                {txt}F(10, 18)         =  {res}    34.93
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7367
                                                {txt}Root MSE          =    {res} .23588

{txt}{ralign 78:(Std. Err. adjusted for {res:19} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2} .5931175{col 26}{space 2} .1760958{col 37}{space 1}    3.37{col 46}{space 3}0.003{col 54}{space 4}  .223154{col 67}{space 3} .9630811
{txt}{space 11}k {c |}{col 14}{res}{space 2} .0098177{col 26}{space 2} .0155801{col 37}{space 1}    0.63{col 46}{space 3}0.537{col 54}{space 4}-.0229148{col 67}{space 3} .0425502
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2} .0669682{col 26}{space 2} .0384158{col 37}{space 1}    1.74{col 46}{space 3}0.098{col 54}{space 4}-.0137404{col 67}{space 3} .1476768
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .0865751{col 26}{space 2} .0441337{col 37}{space 1}    1.96{col 46}{space 3}0.065{col 54}{space 4}-.0061465{col 67}{space 3} .1792966
{txt}{space 8}male {c |}{col 14}{res}{space 2} .1173337{col 26}{space 2} .1493154{col 37}{space 1}    0.79{col 46}{space 3}0.442{col 54}{space 4}-.1963662{col 67}{space 3} .4310337
{txt}{space 8}llex {c |}{col 14}{res}{space 2}-4.977052{col 26}{space 2} 2.641983{col 37}{space 1}   -1.88{col 46}{space 3}0.076{col 54}{space 4}-10.52765{col 67}{space 3} .5735484
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2}-.4986362{col 26}{space 2} .0873896{col 37}{space 1}   -5.71{col 46}{space 3}0.000{col 54}{space 4}-.6822349{col 67}{space 3}-.3150375
{txt}{space 5}ltobaco {c |}{col 14}{res}{space 2}-.2984626{col 26}{space 2}  .177838{col 37}{space 1}   -1.68{col 46}{space 3}0.111{col 54}{space 4}-.6720864{col 67}{space 3} .0751612
{txt}{space 5}lalcohc {c |}{col 14}{res}{space 2} .2181553{col 26}{space 2} .1653933{col 37}{space 1}    1.32{col 46}{space 3}0.204{col 54}{space 4}-.1293233{col 67}{space 3} .5656338
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2} .0015636{col 26}{space 2} .0079445{col 37}{space 1}    0.20{col 46}{space 3}0.846{col 54}{space 4}-.0151271{col 67}{space 3} .0182543
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 15.26376{col 26}{space 2} 9.361744{col 37}{space 1}    1.63{col 46}{space 3}0.120{col 54}{space 4}-4.404536{col 67}{space 3} 34.93205
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.72620013
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       261{col 27}-161.8898{col 38} 12.27271{col 49}    11{col 58}-2.545416{col 69} 36.66431
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 247) = {res}    25.49
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg lhl lprod k pop14 pop65 male llex linfmo  i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       383
                                                {txt}{help j_robustsingular:F(23, 26) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.9836
                                                {txt}Root MSE          =    {res} .06119

{txt}{ralign 78:(Std. Err. adjusted for {res:27} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2} .0804801{col 26}{space 2} .1228332{col 37}{space 1}    0.66{col 46}{space 3}0.518{col 54}{space 4}-.1720071{col 67}{space 3} .3329674
{txt}{space 11}k {c |}{col 14}{res}{space 2}-.0109855{col 26}{space 2} .0097074{col 37}{space 1}   -1.13{col 46}{space 3}0.268{col 54}{space 4}-.0309393{col 67}{space 3} .0089682
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2} .0076965{col 26}{space 2} .0191362{col 37}{space 1}    0.40{col 46}{space 3}0.691{col 54}{space 4}-.0316386{col 67}{space 3} .0470317
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}-.0031076{col 26}{space 2} .0175354{col 37}{space 1}   -0.18{col 46}{space 3}0.861{col 54}{space 4}-.0391521{col 67}{space 3} .0329369
{txt}{space 8}male {c |}{col 14}{res}{space 2}-.1114902{col 26}{space 2} .0473962{col 37}{space 1}   -2.35{col 46}{space 3}0.027{col 54}{space 4}-.2089145{col 67}{space 3}-.0140659
{txt}{space 8}llex {c |}{col 14}{res}{space 2} 2.979539{col 26}{space 2} 2.590263{col 37}{space 1}    1.15{col 46}{space 3}0.260{col 54}{space 4}-2.344823{col 67}{space 3} 8.303901
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2} .0432081{col 26}{space 2} .0746776{col 37}{space 1}    0.58{col 46}{space 3}0.568{col 54}{space 4}-.1102938{col 67}{space 3}   .19671
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1996  {c |}{col 14}{res}{space 2} .0026544{col 26}{space 2} .0130063{col 37}{space 1}    0.20{col 46}{space 3}0.840{col 54}{space 4}-.0240805{col 67}{space 3} .0293893
{txt}{space 7}1997  {c |}{col 14}{res}{space 2}-.0093508{col 26}{space 2}  .024945{col 37}{space 1}   -0.37{col 46}{space 3}0.711{col 54}{space 4} -.060626{col 67}{space 3} .0419244
{txt}{space 7}1998  {c |}{col 14}{res}{space 2} -.016154{col 26}{space 2} .0383599{col 37}{space 1}   -0.42{col 46}{space 3}0.677{col 54}{space 4} -.095004{col 67}{space 3}  .062696
{txt}{space 7}1999  {c |}{col 14}{res}{space 2}-.0162662{col 26}{space 2}  .043761{col 37}{space 1}   -0.37{col 46}{space 3}0.713{col 54}{space 4}-.1062183{col 67}{space 3} .0736858
{txt}{space 7}2000  {c |}{col 14}{res}{space 2}-.0363611{col 26}{space 2}  .058742{col 37}{space 1}   -0.62{col 46}{space 3}0.541{col 54}{space 4}-.1571071{col 67}{space 3} .0843849
{txt}{space 7}2001  {c |}{col 14}{res}{space 2}-.0405031{col 26}{space 2} .0748193{col 37}{space 1}   -0.54{col 46}{space 3}0.593{col 54}{space 4}-.1942964{col 67}{space 3} .1132902
{txt}{space 7}2002  {c |}{col 14}{res}{space 2}-.0139173{col 26}{space 2} .0790639{col 37}{space 1}   -0.18{col 46}{space 3}0.862{col 54}{space 4}-.1764355{col 67}{space 3} .1486008
{txt}{space 7}2003  {c |}{col 14}{res}{space 2}  .026157{col 26}{space 2} .0825604{col 37}{space 1}    0.32{col 46}{space 3}0.754{col 54}{space 4}-.1435483{col 67}{space 3} .1958624
{txt}{space 7}2004  {c |}{col 14}{res}{space 2} .0306864{col 26}{space 2} .1025509{col 37}{space 1}    0.30{col 46}{space 3}0.767{col 54}{space 4}  -.18011{col 67}{space 3} .2414828
{txt}{space 7}2005  {c |}{col 14}{res}{space 2} .0406882{col 26}{space 2} .1071355{col 37}{space 1}    0.38{col 46}{space 3}0.707{col 54}{space 4}-.1795319{col 67}{space 3} .2609083
{txt}{space 7}2006  {c |}{col 14}{res}{space 2} .0406654{col 26}{space 2} .1234469{col 37}{space 1}    0.33{col 46}{space 3}0.744{col 54}{space 4}-.2130834{col 67}{space 3} .2944142
{txt}{space 7}2007  {c |}{col 14}{res}{space 2} .0440153{col 26}{space 2}  .130325{col 37}{space 1}    0.34{col 46}{space 3}0.738{col 54}{space 4}-.2238715{col 67}{space 3} .3119021
{txt}{space 7}2008  {c |}{col 14}{res}{space 2} .0020598{col 26}{space 2} .1358768{col 37}{space 1}    0.02{col 46}{space 3}0.988{col 54}{space 4} -.277239{col 67}{space 3} .2813587
{txt}{space 7}2009  {c |}{col 14}{res}{space 2} .0631617{col 26}{space 2} .1473952{col 37}{space 1}    0.43{col 46}{space 3}0.672{col 54}{space 4}-.2398135{col 67}{space 3} .3661368
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}  .076587{col 26}{space 2}  .161496{col 37}{space 1}    0.47{col 46}{space 3}0.639{col 54}{space 4}-.2553728{col 67}{space 3} .4085468
{txt}{space 7}2011  {c |}{col 14}{res}{space 2} .0841608{col 26}{space 2} .1666383{col 37}{space 1}    0.51{col 46}{space 3}0.618{col 54}{space 4}-.2583692{col 67}{space 3} .4266908
{txt}{space 7}2012  {c |}{col 14}{res}{space 2} .0730452{col 26}{space 2} .1847325{col 37}{space 1}    0.40{col 46}{space 3}0.696{col 54}{space 4} -.306678{col 67}{space 3} .4527683
{txt}{space 7}2013  {c |}{col 14}{res}{space 2} .0902572{col 26}{space 2} .1741457{col 37}{space 1}    0.52{col 46}{space 3}0.609{col 54}{space 4}-.2677044{col 67}{space 3} .4482189
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}2  {c |}{col 14}{res}{space 2}-.2319371{col 26}{space 2} .1078966{col 37}{space 1}   -2.15{col 46}{space 3}0.041{col 54}{space 4}-.4537217{col 67}{space 3}-.0101524
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .1309033{col 26}{space 2} .0825151{col 37}{space 1}    1.59{col 46}{space 3}0.125{col 54}{space 4}-.0387089{col 67}{space 3} .3005155
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .0474108{col 26}{space 2} .0546831{col 37}{space 1}    0.87{col 46}{space 3}0.394{col 54}{space 4}-.0649919{col 67}{space 3} .1598134
{txt}{space 10}5  {c |}{col 14}{res}{space 2}-.3615499{col 26}{space 2} .2584642{col 37}{space 1}   -1.40{col 46}{space 3}0.174{col 54}{space 4}-.8928307{col 67}{space 3}  .169731
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .6623064{col 26}{space 2} .0893817{col 37}{space 1}    7.41{col 46}{space 3}0.000{col 54}{space 4} .4785796{col 67}{space 3} .8460332
{txt}{space 10}7  {c |}{col 14}{res}{space 2}-.5959156{col 26}{space 2} .3882318{col 37}{space 1}   -1.53{col 46}{space 3}0.137{col 54}{space 4}-1.393938{col 67}{space 3} .2021064
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .4062698{col 26}{space 2} .0886105{col 37}{space 1}    4.58{col 46}{space 3}0.000{col 54}{space 4} .2241284{col 67}{space 3} .5884113
{txt}{space 10}9  {c |}{col 14}{res}{space 2}-.2065894{col 26}{space 2} .0723587{col 37}{space 1}   -2.86{col 46}{space 3}0.008{col 54}{space 4}-.3553249{col 67}{space 3} -.057854
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0312256{col 26}{space 2} .1188932{col 37}{space 1}    0.26{col 46}{space 3}0.795{col 54}{space 4}-.2131629{col 67}{space 3} .2756141
{txt}{space 9}11  {c |}{col 14}{res}{space 2} -.710626{col 26}{space 2} .1028255{col 37}{space 1}   -6.91{col 46}{space 3}0.000{col 54}{space 4}-.9219867{col 67}{space 3}-.4992652
{txt}{space 9}12  {c |}{col 14}{res}{space 2} -.358003{col 26}{space 2} .3636002{col 37}{space 1}   -0.98{col 46}{space 3}0.334{col 54}{space 4}-1.105394{col 67}{space 3}  .389388
{txt}{space 9}13  {c |}{col 14}{res}{space 2}   .38379{col 26}{space 2} .0685071{col 37}{space 1}    5.60{col 46}{space 3}0.000{col 54}{space 4} .2429717{col 67}{space 3} .5246083
{txt}{space 9}14  {c |}{col 14}{res}{space 2} .0076581{col 26}{space 2} .0626301{col 37}{space 1}    0.12{col 46}{space 3}0.904{col 54}{space 4}-.1210799{col 67}{space 3} .1363961
{txt}{space 9}15  {c |}{col 14}{res}{space 2}-.5129878{col 26}{space 2} .1182742{col 37}{space 1}   -4.34{col 46}{space 3}0.000{col 54}{space 4} -.756104{col 67}{space 3}-.2698716
{txt}{space 9}16  {c |}{col 14}{res}{space 2}-.3505288{col 26}{space 2} .0710517{col 37}{space 1}   -4.93{col 46}{space 3}0.000{col 54}{space 4}-.4965776{col 67}{space 3}-.2044799
{txt}{space 9}17  {c |}{col 14}{res}{space 2} .3794913{col 26}{space 2} .0544663{col 37}{space 1}    6.97{col 46}{space 3}0.000{col 54}{space 4} .2675342{col 67}{space 3} .4914484
{txt}{space 9}18  {c |}{col 14}{res}{space 2}-.1937523{col 26}{space 2} .0551444{col 37}{space 1}   -3.51{col 46}{space 3}0.002{col 54}{space 4}-.3071033{col 67}{space 3}-.0804013
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .6515636{col 26}{space 2} .0545109{col 37}{space 1}   11.95{col 46}{space 3}0.000{col 54}{space 4} .5395148{col 67}{space 3} .7636124
{txt}{space 9}21  {c |}{col 14}{res}{space 2}-.6491822{col 26}{space 2} .1754604{col 37}{space 1}   -3.70{col 46}{space 3}0.001{col 54}{space 4}-1.009846{col 67}{space 3}-.2885182
{txt}{space 9}22  {c |}{col 14}{res}{space 2} -.616073{col 26}{space 2} .2047544{col 37}{space 1}   -3.01{col 46}{space 3}0.006{col 54}{space 4}-1.036952{col 67}{space 3}-.1951944
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-.5639614{col 26}{space 2} .0986581{col 37}{space 1}   -5.72{col 46}{space 3}0.000{col 54}{space 4} -.766756{col 67}{space 3}-.3611667
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .5658692{col 26}{space 2} .0673324{col 37}{space 1}    8.40{col 46}{space 3}0.000{col 54}{space 4} .4274654{col 67}{space 3} .7042729
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-.0122073{col 26}{space 2} .0728147{col 37}{space 1}   -0.17{col 46}{space 3}0.868{col 54}{space 4}-.1618801{col 67}{space 3} .1374654
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-1.191599{col 26}{space 2} .2826082{col 37}{space 1}   -4.22{col 46}{space 3}0.000{col 54}{space 4}-1.772508{col 67}{space 3}-.6106891
{txt}{space 9}27  {c |}{col 14}{res}{space 2}  .142806{col 26}{space 2} .0630665{col 37}{space 1}    2.26{col 46}{space 3}0.032{col 54}{space 4} .0131709{col 67}{space 3} .2724411
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .0700271{col 26}{space 2} .1383716{col 37}{space 1}    0.51{col 46}{space 3}0.617{col 54}{space 4}-.2143999{col 67}{space 3}  .354454
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}  -4.6759{col 26}{space 2} 12.84338{col 37}{space 1}   -0.36{col 46}{space 3}0.719{col 54}{space 4}-31.07585{col 67}{space 3} 21.72405
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.98112631
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       383{col 27}-233.1909{col 38} 554.5039{col 49}    24{col 58}-1061.008{col 69}-966.2549
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 328) = {res}    19.90
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1996.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 2.cid = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 3.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 4.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 7.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 15.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 16.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 18.cid = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(37)}{space 1} 21.cid = 0{p_end}
{p 0 7}{space 1}{text:(38)}{space 1} 22.cid = 0{p_end}
{p 0 7}{space 1}{text:(39)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(40)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(41)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(42)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(43)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(44)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 23 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 29 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 34 dropped
       Constraint 35 dropped
       Constraint 36 dropped
       Constraint 37 dropped
       Constraint 38 dropped
       Constraint 39 dropped
       Constraint 40 dropped
       Constraint 41 dropped
       Constraint 43 dropped

       F( 24,    26) ={res} 3219.65
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. 
. reg lhl lprod k pop14 pop65 male llex linfmo ltobaco lalcohc  i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       261
                                                {txt}{help j_robustsingular:F(17, 18) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.9916
                                                {txt}Root MSE          =    {res} .04547

{txt}{ralign 78:(Std. Err. adjusted for {res:19} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2} .3365765{col 26}{space 2} .0960413{col 37}{space 1}    3.50{col 46}{space 3}0.003{col 54}{space 4} .1348012{col 67}{space 3} .5383518
{txt}{space 11}k {c |}{col 14}{res}{space 2}-.0071707{col 26}{space 2} .0065585{col 37}{space 1}   -1.09{col 46}{space 3}0.289{col 54}{space 4}-.0209496{col 67}{space 3} .0066082
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2} .0031333{col 26}{space 2} .0161033{col 37}{space 1}    0.19{col 46}{space 3}0.848{col 54}{space 4}-.0306985{col 67}{space 3} .0369652
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .0107148{col 26}{space 2} .0114173{col 37}{space 1}    0.94{col 46}{space 3}0.360{col 54}{space 4} -.013272{col 67}{space 3} .0347016
{txt}{space 8}male {c |}{col 14}{res}{space 2}-.0735822{col 26}{space 2} .0516122{col 37}{space 1}   -1.43{col 46}{space 3}0.171{col 54}{space 4}-.1820154{col 67}{space 3}  .034851
{txt}{space 8}llex {c |}{col 14}{res}{space 2} 5.228028{col 26}{space 2} 2.205699{col 37}{space 1}    2.37{col 46}{space 3}0.029{col 54}{space 4} .5940255{col 67}{space 3}  9.86203
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2} .0526741{col 26}{space 2} .0357424{col 37}{space 1}    1.47{col 46}{space 3}0.158{col 54}{space 4}-.0224179{col 67}{space 3} .1277661
{txt}{space 5}ltobaco {c |}{col 14}{res}{space 2}-.0891353{col 26}{space 2} .0624693{col 37}{space 1}   -1.43{col 46}{space 3}0.171{col 54}{space 4}-.2203784{col 67}{space 3} .0421079
{txt}{space 5}lalcohc {c |}{col 14}{res}{space 2} -.214382{col 26}{space 2} .1019543{col 37}{space 1}   -2.10{col 46}{space 3}0.050{col 54}{space 4}-.4285801{col 67}{space 3}-.0001838
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1996  {c |}{col 14}{res}{space 2}-.0276049{col 26}{space 2} .0127009{col 37}{space 1}   -2.17{col 46}{space 3}0.043{col 54}{space 4}-.0542885{col 67}{space 3}-.0009214
{txt}{space 7}1997  {c |}{col 14}{res}{space 2}-.0581799{col 26}{space 2} .0212871{col 37}{space 1}   -2.73{col 46}{space 3}0.014{col 54}{space 4}-.1029024{col 67}{space 3}-.0134574
{txt}{space 7}1998  {c |}{col 14}{res}{space 2}-.0808663{col 26}{space 2} .0362429{col 37}{space 1}   -2.23{col 46}{space 3}0.039{col 54}{space 4}-.1570099{col 67}{space 3}-.0047228
{txt}{space 7}1999  {c |}{col 14}{res}{space 2}-.0894674{col 26}{space 2} .0381857{col 37}{space 1}   -2.34{col 46}{space 3}0.031{col 54}{space 4}-.1696926{col 67}{space 3}-.0092422
{txt}{space 7}2000  {c |}{col 14}{res}{space 2}-.1364578{col 26}{space 2} .0481892{col 37}{space 1}   -2.83{col 46}{space 3}0.011{col 54}{space 4}-.2376995{col 67}{space 3}-.0352162
{txt}{space 7}2001  {c |}{col 14}{res}{space 2}-.1678894{col 26}{space 2} .0582538{col 37}{space 1}   -2.88{col 46}{space 3}0.010{col 54}{space 4}-.2902761{col 67}{space 3}-.0455027
{txt}{space 7}2002  {c |}{col 14}{res}{space 2}-.1585271{col 26}{space 2} .0611786{col 37}{space 1}   -2.59{col 46}{space 3}0.018{col 54}{space 4}-.2870587{col 67}{space 3}-.0299956
{txt}{space 7}2003  {c |}{col 14}{res}{space 2}-.1571509{col 26}{space 2} .0711771{col 37}{space 1}   -2.21{col 46}{space 3}0.040{col 54}{space 4}-.3066884{col 67}{space 3}-.0076133
{txt}{space 7}2004  {c |}{col 14}{res}{space 2}-.1863572{col 26}{space 2} .0951078{col 37}{space 1}   -1.96{col 46}{space 3}0.066{col 54}{space 4}-.3861713{col 67}{space 3} .0134568
{txt}{space 7}2005  {c |}{col 14}{res}{space 2}-.1989213{col 26}{space 2} .1017237{col 37}{space 1}   -1.96{col 46}{space 3}0.066{col 54}{space 4}-.4126348{col 67}{space 3} .0147922
{txt}{space 7}2006  {c |}{col 14}{res}{space 2}-.2252575{col 26}{space 2} .1109239{col 37}{space 1}   -2.03{col 46}{space 3}0.057{col 54}{space 4}   -.4583{col 67}{space 3}  .007785
{txt}{space 7}2007  {c |}{col 14}{res}{space 2}-.2409032{col 26}{space 2} .1200974{col 37}{space 1}   -2.01{col 46}{space 3}0.060{col 54}{space 4}-.4932184{col 67}{space 3}  .011412
{txt}{space 7}2008  {c |}{col 14}{res}{space 2}-.2838082{col 26}{space 2} .1325483{col 37}{space 1}   -2.14{col 46}{space 3}0.046{col 54}{space 4}-.5622819{col 67}{space 3}-.0053345
{txt}{space 7}2009  {c |}{col 14}{res}{space 2}-.2647136{col 26}{space 2} .1409131{col 37}{space 1}   -1.88{col 46}{space 3}0.077{col 54}{space 4} -.560761{col 67}{space 3} .0313339
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}-.2634611{col 26}{space 2} .1515671{col 37}{space 1}   -1.74{col 46}{space 3}0.099{col 54}{space 4}-.5818918{col 67}{space 3} .0549696
{txt}{space 7}2011  {c |}{col 14}{res}{space 2}-.2922211{col 26}{space 2} .1546375{col 37}{space 1}   -1.89{col 46}{space 3}0.075{col 54}{space 4}-.6171024{col 67}{space 3} .0326602
{txt}{space 7}2012  {c |}{col 14}{res}{space 2}-.3442407{col 26}{space 2} .1758419{col 37}{space 1}   -1.96{col 46}{space 3}0.066{col 54}{space 4}-.7136709{col 67}{space 3} .0251894
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-.3016129{col 26}{space 2}   .16088{col 37}{space 1}   -1.87{col 46}{space 3}0.077{col 54}{space 4}-.6396094{col 67}{space 3} .0363835
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}4  {c |}{col 14}{res}{space 2}-.0005002{col 26}{space 2} .0451412{col 37}{space 1}   -0.01{col 46}{space 3}0.991{col 54}{space 4}-.0953384{col 67}{space 3}  .094338
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .0056385{col 26}{space 2} .2504543{col 37}{space 1}    0.02{col 46}{space 3}0.982{col 54}{space 4}-.5205464{col 67}{space 3} .5318233
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .7209884{col 26}{space 2} .0809657{col 37}{space 1}    8.90{col 46}{space 3}0.000{col 54}{space 4} .5508858{col 67}{space 3} .8910911
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .3745946{col 26}{space 2} .0777518{col 37}{space 1}    4.82{col 46}{space 3}0.000{col 54}{space 4} .2112442{col 67}{space 3} .5379451
{txt}{space 10}9  {c |}{col 14}{res}{space 2}-.1666449{col 26}{space 2} .0743384{col 37}{space 1}   -2.24{col 46}{space 3}0.038{col 54}{space 4} -.322824{col 67}{space 3}-.0104657
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0535797{col 26}{space 2} .1085039{col 37}{space 1}    0.49{col 46}{space 3}0.627{col 54}{space 4}-.1743784{col 67}{space 3} .2815379
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-.6024846{col 26}{space 2} .1135438{col 37}{space 1}   -5.31{col 46}{space 3}0.000{col 54}{space 4}-.8410313{col 67}{space 3}-.3639378
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .1730388{col 26}{space 2} .3581917{col 37}{space 1}    0.48{col 46}{space 3}0.635{col 54}{space 4} -.579494{col 67}{space 3} .9255717
{txt}{space 9}13  {c |}{col 14}{res}{space 2} .3522578{col 26}{space 2} .0776344{col 37}{space 1}    4.54{col 46}{space 3}0.000{col 54}{space 4}  .189154{col 67}{space 3} .5153616
{txt}{space 9}14  {c |}{col 14}{res}{space 2}  .151177{col 26}{space 2} .0590859{col 37}{space 1}    2.56{col 46}{space 3}0.020{col 54}{space 4} .0270421{col 67}{space 3} .2753118
{txt}{space 9}17  {c |}{col 14}{res}{space 2} .3745933{col 26}{space 2} .0582406{col 37}{space 1}    6.43{col 46}{space 3}0.000{col 54}{space 4} .2522343{col 67}{space 3} .4969524
{txt}{space 9}18  {c |}{col 14}{res}{space 2}-.0832547{col 26}{space 2} .0536248{col 37}{space 1}   -1.55{col 46}{space 3}0.138{col 54}{space 4}-.1959163{col 67}{space 3} .0294068
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .4194932{col 26}{space 2} .0839316{col 37}{space 1}    5.00{col 46}{space 3}0.000{col 54}{space 4} .2431596{col 67}{space 3} .5958269
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .4393975{col 26}{space 2} .0522239{col 37}{space 1}    8.41{col 46}{space 3}0.000{col 54}{space 4} .3296791{col 67}{space 3}  .549116
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-.0284947{col 26}{space 2} .0677387{col 37}{space 1}   -0.42{col 46}{space 3}0.679{col 54}{space 4}-.1708084{col 67}{space 3}  .113819
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-1.100118{col 26}{space 2} .3100198{col 37}{space 1}   -3.55{col 46}{space 3}0.002{col 54}{space 4}-1.751445{col 67}{space 3}-.4487906
{txt}{space 9}27  {c |}{col 14}{res}{space 2}   .17176{col 26}{space 2}  .068016{col 37}{space 1}    2.53{col 46}{space 3}0.021{col 54}{space 4} .0288637{col 67}{space 3} .3146564
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .1685785{col 26}{space 2} .1127233{col 37}{space 1}    1.50{col 46}{space 3}0.152{col 54}{space 4}-.0682444{col 67}{space 3} .4054014
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-16.47891{col 26}{space 2} 11.22326{col 37}{space 1}   -1.47{col 46}{space 3}0.159{col 54}{space 4}-40.05812{col 67}{space 3}  7.10029
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.98982584
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       261{col 27}-161.8898{col 38} 461.6324{col 49}    18{col 58}-887.2648{col 69}-823.1034
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest 

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 212) = {res}     5.34
                  {txt}Prob > F =      {res}0.0015
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1996.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 4.cid = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 18.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 3 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 10 dropped
       Constraint 14 dropped
       Constraint 16 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 32 dropped
       Constraint 35 dropped

       F( 18,    18) ={res}  738.65
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. 
. reg lhl lprod k pop14 pop65 male llex linfmo ltobaco lalcohc gdpg i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       261
                                                {txt}{help j_robustsingular:F(17, 18) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.9917
                                                {txt}Root MSE          =    {res} .04536

{txt}{ralign 78:(Std. Err. adjusted for {res:19} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2} .3408552{col 26}{space 2} .0987773{col 37}{space 1}    3.45{col 46}{space 3}0.003{col 54}{space 4} .1333318{col 67}{space 3} .5483786
{txt}{space 11}k {c |}{col 14}{res}{space 2}-.0084697{col 26}{space 2} .0058588{col 37}{space 1}   -1.45{col 46}{space 3}0.165{col 54}{space 4}-.0207785{col 67}{space 3} .0038392
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2} .0031768{col 26}{space 2} .0152196{col 37}{space 1}    0.21{col 46}{space 3}0.837{col 54}{space 4}-.0287985{col 67}{space 3} .0351521
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .0089071{col 26}{space 2} .0114841{col 37}{space 1}    0.78{col 46}{space 3}0.448{col 54}{space 4}-.0152202{col 67}{space 3} .0330344
{txt}{space 8}male {c |}{col 14}{res}{space 2}-.0768559{col 26}{space 2} .0485002{col 37}{space 1}   -1.58{col 46}{space 3}0.130{col 54}{space 4}-.1787509{col 67}{space 3} .0250392
{txt}{space 8}llex {c |}{col 14}{res}{space 2} 5.186276{col 26}{space 2} 2.168732{col 37}{space 1}    2.39{col 46}{space 3}0.028{col 54}{space 4} .6299378{col 67}{space 3} 9.742613
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2} .0472168{col 26}{space 2} .0338253{col 37}{space 1}    1.40{col 46}{space 3}0.180{col 54}{space 4}-.0238476{col 67}{space 3} .1182811
{txt}{space 5}ltobaco {c |}{col 14}{res}{space 2}-.0916862{col 26}{space 2} .0614937{col 37}{space 1}   -1.49{col 46}{space 3}0.153{col 54}{space 4}-.2208796{col 67}{space 3} .0375073
{txt}{space 5}lalcohc {c |}{col 14}{res}{space 2}-.2174634{col 26}{space 2} .1050421{col 37}{space 1}   -2.07{col 46}{space 3}0.053{col 54}{space 4}-.4381485{col 67}{space 3} .0032218
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2} .0024866{col 26}{space 2} .0030051{col 37}{space 1}    0.83{col 46}{space 3}0.419{col 54}{space 4} -.003827{col 67}{space 3} .0088001
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1996  {c |}{col 14}{res}{space 2}-.0275597{col 26}{space 2} .0126902{col 37}{space 1}   -2.17{col 46}{space 3}0.043{col 54}{space 4}-.0542208{col 67}{space 3}-.0008986
{txt}{space 7}1997  {c |}{col 14}{res}{space 2}-.0606075{col 26}{space 2} .0223143{col 37}{space 1}   -2.72{col 46}{space 3}0.014{col 54}{space 4}-.1074882{col 67}{space 3}-.0137268
{txt}{space 7}1998  {c |}{col 14}{res}{space 2}-.0835874{col 26}{space 2} .0378579{col 37}{space 1}   -2.21{col 46}{space 3}0.040{col 54}{space 4}-.1631239{col 67}{space 3}-.0040509
{txt}{space 7}1999  {c |}{col 14}{res}{space 2}-.0930464{col 26}{space 2} .0402683{col 37}{space 1}   -2.31{col 46}{space 3}0.033{col 54}{space 4} -.177647{col 67}{space 3}-.0084459
{txt}{space 7}2000  {c |}{col 14}{res}{space 2}-.1421497{col 26}{space 2} .0503081{col 37}{space 1}   -2.83{col 46}{space 3}0.011{col 54}{space 4}-.2478431{col 67}{space 3}-.0364562
{txt}{space 7}2001  {c |}{col 14}{res}{space 2}-.1696974{col 26}{space 2} .0601622{col 37}{space 1}   -2.82{col 46}{space 3}0.011{col 54}{space 4}-.2960935{col 67}{space 3}-.0433013
{txt}{space 7}2002  {c |}{col 14}{res}{space 2}-.1605841{col 26}{space 2} .0636277{col 37}{space 1}   -2.52{col 46}{space 3}0.021{col 54}{space 4} -.294261{col 67}{space 3}-.0269072
{txt}{space 7}2003  {c |}{col 14}{res}{space 2}-.1574985{col 26}{space 2} .0732224{col 37}{space 1}   -2.15{col 46}{space 3}0.045{col 54}{space 4}-.3113331{col 67}{space 3} -.003664
{txt}{space 7}2004  {c |}{col 14}{res}{space 2}-.1896602{col 26}{space 2} .0974823{col 37}{space 1}   -1.95{col 46}{space 3}0.067{col 54}{space 4} -.394463{col 67}{space 3} .0151426
{txt}{space 7}2005  {c |}{col 14}{res}{space 2}-.2007086{col 26}{space 2} .1043179{col 37}{space 1}   -1.92{col 46}{space 3}0.070{col 54}{space 4}-.4198725{col 67}{space 3} .0184553
{txt}{space 7}2006  {c |}{col 14}{res}{space 2}-.2287029{col 26}{space 2} .1137769{col 37}{space 1}   -2.01{col 46}{space 3}0.060{col 54}{space 4}-.4677392{col 67}{space 3} .0103334
{txt}{space 7}2007  {c |}{col 14}{res}{space 2}-.2423071{col 26}{space 2} .1235294{col 37}{space 1}   -1.96{col 46}{space 3}0.065{col 54}{space 4}-.5018328{col 67}{space 3} .0172186
{txt}{space 7}2008  {c |}{col 14}{res}{space 2}-.2769295{col 26}{space 2} .1344449{col 37}{space 1}   -2.06{col 46}{space 3}0.054{col 54}{space 4}-.5593877{col 67}{space 3} .0055287
{txt}{space 7}2009  {c |}{col 14}{res}{space 2}-.2504491{col 26}{space 2}  .143282{col 37}{space 1}   -1.75{col 46}{space 3}0.098{col 54}{space 4}-.5514735{col 67}{space 3} .0505754
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}-.2596936{col 26}{space 2} .1540782{col 37}{space 1}   -1.69{col 46}{space 3}0.109{col 54}{space 4}-.5833999{col 67}{space 3} .0640126
{txt}{space 7}2011  {c |}{col 14}{res}{space 2} -.292784{col 26}{space 2} .1581305{col 37}{space 1}   -1.85{col 46}{space 3}0.081{col 54}{space 4}-.6250038{col 67}{space 3} .0394359
{txt}{space 7}2012  {c |}{col 14}{res}{space 2}-.3427011{col 26}{space 2} .1770686{col 37}{space 1}   -1.94{col 46}{space 3}0.069{col 54}{space 4}-.7147085{col 67}{space 3} .0293063
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-.2996904{col 26}{space 2} .1643386{col 37}{space 1}   -1.82{col 46}{space 3}0.085{col 54}{space 4} -.644953{col 67}{space 3} .0455721
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}4  {c |}{col 14}{res}{space 2}-.0019513{col 26}{space 2}  .042901{col 37}{space 1}   -0.05{col 46}{space 3}0.964{col 54}{space 4}-.0920829{col 67}{space 3} .0881803
{txt}{space 10}5  {c |}{col 14}{res}{space 2}  .001971{col 26}{space 2} .2427673{col 37}{space 1}    0.01{col 46}{space 3}0.994{col 54}{space 4}-.5080641{col 67}{space 3} .5120061
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .7299953{col 26}{space 2} .0833208{col 37}{space 1}    8.76{col 46}{space 3}0.000{col 54}{space 4} .5549449{col 67}{space 3} .9050457
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .3749605{col 26}{space 2} .0752666{col 37}{space 1}    4.98{col 46}{space 3}0.000{col 54}{space 4} .2168312{col 67}{space 3} .5330898
{txt}{space 10}9  {c |}{col 14}{res}{space 2}-.1611462{col 26}{space 2}  .076638{col 37}{space 1}   -2.10{col 46}{space 3}0.050{col 54}{space 4}-.3221568{col 67}{space 3}-.0001357
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0637152{col 26}{space 2} .1076147{col 37}{space 1}    0.59{col 46}{space 3}0.561{col 54}{space 4}-.1623749{col 67}{space 3} .2898052
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-.5938895{col 26}{space 2} .1106257{col 37}{space 1}   -5.37{col 46}{space 3}0.000{col 54}{space 4}-.8263054{col 67}{space 3}-.3614736
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .1676425{col 26}{space 2} .3482368{col 37}{space 1}    0.48{col 46}{space 3}0.636{col 54}{space 4}-.5639759{col 67}{space 3} .8992608
{txt}{space 9}13  {c |}{col 14}{res}{space 2} .3497814{col 26}{space 2} .0763963{col 37}{space 1}    4.58{col 46}{space 3}0.000{col 54}{space 4} .1892788{col 67}{space 3}  .510284
{txt}{space 9}14  {c |}{col 14}{res}{space 2} .1456919{col 26}{space 2} .0584632{col 37}{space 1}    2.49{col 46}{space 3}0.023{col 54}{space 4} .0228653{col 67}{space 3} .2685186
{txt}{space 9}17  {c |}{col 14}{res}{space 2} .3787912{col 26}{space 2} .0546969{col 37}{space 1}    6.93{col 46}{space 3}0.000{col 54}{space 4} .2638773{col 67}{space 3} .4937052
{txt}{space 9}18  {c |}{col 14}{res}{space 2}-.0860128{col 26}{space 2} .0532911{col 37}{space 1}   -1.61{col 46}{space 3}0.124{col 54}{space 4}-.1979732{col 67}{space 3} .0259477
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .4233725{col 26}{space 2} .0827264{col 37}{space 1}    5.12{col 46}{space 3}0.000{col 54}{space 4} .2495707{col 67}{space 3} .5971743
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .4473625{col 26}{space 2} .0505494{col 37}{space 1}    8.85{col 46}{space 3}0.000{col 54}{space 4} .3411622{col 67}{space 3} .5535628
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-.0197511{col 26}{space 2} .0672562{col 37}{space 1}   -0.29{col 46}{space 3}0.772{col 54}{space 4}-.1610512{col 67}{space 3}  .121549
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-1.112691{col 26}{space 2} .3168339{col 37}{space 1}   -3.51{col 46}{space 3}0.002{col 54}{space 4}-1.778334{col 67}{space 3}-.4470474
{txt}{space 9}27  {c |}{col 14}{res}{space 2} .1799703{col 26}{space 2} .0694681{col 37}{space 1}    2.59{col 46}{space 3}0.018{col 54}{space 4} .0340233{col 67}{space 3} .3259173
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .1584917{col 26}{space 2} .1017525{col 37}{space 1}    1.56{col 46}{space 3}0.137{col 54}{space 4}-.0552824{col 67}{space 3} .3722658
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} -15.9813{col 26}{space 2} 10.80715{col 37}{space 1}   -1.48{col 46}{space 3}0.156{col 54}{space 4}-38.68628{col 67}{space 3} 6.723687
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.98987458
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1996.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 4.cid = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 18.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 3 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 10 dropped
       Constraint 14 dropped
       Constraint 16 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 32 dropped
       Constraint 33 dropped
       Constraint 35 dropped

       F( 18,    18) ={res} 1061.01
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       261{col 27}-161.8898{col 38} 462.8675{col 49}    18{col 58}-889.7349{col 69}-825.5735
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 211) = {res}     5.96
                  {txt}Prob > F =      {res}0.0006
{txt}
{com}. 
. 
. reg lhl lprod k pop14 pop65 male llex linfmo cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       383
                                                {txt}{help j_robustsingular:F(6, 26) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.9908
                                                {txt}Root MSE          =    {res} .04643

{txt}{ralign 78:(Std. Err. adjusted for {res:27} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2}-.0373252{col 26}{space 2} .0698578{col 37}{space 1}   -0.53{col 46}{space 3}0.598{col 54}{space 4}-.1809199{col 67}{space 3} .1062694
{txt}{space 11}k {c |}{col 14}{res}{space 2} .0051946{col 26}{space 2} .0028499{col 37}{space 1}    1.82{col 46}{space 3}0.080{col 54}{space 4}-.0006636{col 67}{space 3} .0110527
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2} .0269704{col 26}{space 2} .0270241{col 37}{space 1}    1.00{col 46}{space 3}0.327{col 54}{space 4}-.0285784{col 67}{space 3} .0825192
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}-.0048363{col 26}{space 2} .0194767{col 37}{space 1}   -0.25{col 46}{space 3}0.806{col 54}{space 4}-.0448712{col 67}{space 3} .0351985
{txt}{space 8}male {c |}{col 14}{res}{space 2}-.0709185{col 26}{space 2} .0523349{col 37}{space 1}   -1.36{col 46}{space 3}0.187{col 54}{space 4}-.1784945{col 67}{space 3} .0366575
{txt}{space 8}llex {c |}{col 14}{res}{space 2}-.8417073{col 26}{space 2} 1.595574{col 37}{space 1}   -0.53{col 46}{space 3}0.602{col 54}{space 4}-4.121456{col 67}{space 3} 2.438042
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2}  .002124{col 26}{space 2} .0284732{col 37}{space 1}    0.07{col 46}{space 3}0.941{col 54}{space 4}-.0564035{col 67}{space 3} .0606514
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}2  {c |}{col 14}{res}{space 2}-4.315984{col 26}{space 2} 4.361945{col 37}{space 1}   -0.99{col 46}{space 3}0.332{col 54}{space 4}-13.28209{col 67}{space 3} 4.650123
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-3.917283{col 26}{space 2} 3.492888{col 37}{space 1}   -1.12{col 46}{space 3}0.272{col 54}{space 4}-11.09702{col 67}{space 3} 3.262452
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 5.953573{col 26}{space 2} 5.779767{col 37}{space 1}    1.03{col 46}{space 3}0.312{col 54}{space 4}-5.926908{col 67}{space 3} 17.83405
{txt}{space 10}5  {c |}{col 14}{res}{space 2} -14.1016{col 26}{space 2} 7.050002{col 37}{space 1}   -2.00{col 46}{space 3}0.056{col 54}{space 4}-28.59309{col 67}{space 3} .3898871
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 33.24967{col 26}{space 2} 11.88042{col 37}{space 1}    2.80{col 46}{space 3}0.010{col 54}{space 4} 8.829111{col 67}{space 3} 57.67022
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 2.712111{col 26}{space 2}  13.3047{col 37}{space 1}    0.20{col 46}{space 3}0.840{col 54}{space 4}-24.63608{col 67}{space 3}  30.0603
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 13.31353{col 26}{space 2} 4.125909{col 37}{space 1}    3.23{col 46}{space 3}0.003{col 54}{space 4} 4.832604{col 67}{space 3} 21.79446
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 28.06876{col 26}{space 2} 3.356638{col 37}{space 1}    8.36{col 46}{space 3}0.000{col 54}{space 4} 21.16909{col 67}{space 3} 34.96843
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-14.98292{col 26}{space 2} 11.02491{col 37}{space 1}   -1.36{col 46}{space 3}0.186{col 54}{space 4}-37.64495{col 67}{space 3} 7.679109
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .4976075{col 26}{space 2} 7.910657{col 37}{space 1}    0.06{col 46}{space 3}0.950{col 54}{space 4}-15.76298{col 67}{space 3}  16.7582
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 20.48414{col 26}{space 2} 5.389032{col 37}{space 1}    3.80{col 46}{space 3}0.001{col 54}{space 4} 9.406826{col 67}{space 3} 31.56145
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 36.18676{col 26}{space 2} 5.861991{col 37}{space 1}    6.17{col 46}{space 3}0.000{col 54}{space 4} 24.13727{col 67}{space 3} 48.23626
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-38.79845{col 26}{space 2}  4.07833{col 37}{space 1}   -9.51{col 46}{space 3}0.000{col 54}{space 4}-47.18158{col 67}{space 3}-30.41532
{txt}{space 9}15  {c |}{col 14}{res}{space 2} 11.67558{col 26}{space 2} 11.49698{col 37}{space 1}    1.02{col 46}{space 3}0.319{col 54}{space 4}-11.95681{col 67}{space 3} 35.30796
{txt}{space 9}16  {c |}{col 14}{res}{space 2} -13.5939{col 26}{space 2} 7.345337{col 37}{space 1}   -1.85{col 46}{space 3}0.076{col 54}{space 4}-28.69245{col 67}{space 3} 1.504659
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 5.672236{col 26}{space 2} 6.265387{col 37}{space 1}    0.91{col 46}{space 3}0.374{col 54}{space 4}-7.206452{col 67}{space 3} 18.55092
{txt}{space 9}18  {c |}{col 14}{res}{space 2}-7.525208{col 26}{space 2}  4.37483{col 37}{space 1}   -1.72{col 46}{space 3}0.097{col 54}{space 4} -16.5178{col 67}{space 3} 1.467384
{txt}{space 9}19  {c |}{col 14}{res}{space 2} 7.925004{col 26}{space 2} 7.162309{col 37}{space 1}    1.11{col 46}{space 3}0.279{col 54}{space 4}-6.797333{col 67}{space 3} 22.64734
{txt}{space 9}21  {c |}{col 14}{res}{space 2}-35.60726{col 26}{space 2} 6.654389{col 37}{space 1}   -5.35{col 46}{space 3}0.000{col 54}{space 4}-49.28556{col 67}{space 3}-21.92897
{txt}{space 9}22  {c |}{col 14}{res}{space 2} 68.74034{col 26}{space 2} 11.85193{col 37}{space 1}    5.80{col 46}{space 3}0.000{col 54}{space 4} 44.37835{col 67}{space 3} 93.10232
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 2.406445{col 26}{space 2}  4.86583{col 37}{space 1}    0.49{col 46}{space 3}0.625{col 54}{space 4}-7.595412{col 67}{space 3}  12.4083
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 73.95939{col 26}{space 2} 6.241988{col 37}{space 1}   11.85{col 46}{space 3}0.000{col 54}{space 4}  61.1288{col 67}{space 3} 86.78998
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-5.565651{col 26}{space 2} 1.998524{col 37}{space 1}   -2.78{col 46}{space 3}0.010{col 54}{space 4}-9.673677{col 67}{space 3}-1.457626
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-46.72647{col 26}{space 2}  12.4391{col 37}{space 1}   -3.76{col 46}{space 3}0.001{col 54}{space 4} -72.2954{col 67}{space 3}-21.15755
{txt}{space 9}27  {c |}{col 14}{res}{space 2}  2.80744{col 26}{space 2} 3.274308{col 37}{space 1}    0.86{col 46}{space 3}0.399{col 54}{space 4}-3.922996{col 67}{space 3} 9.537876
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-4.369073{col 26}{space 2} 4.280139{col 37}{space 1}   -1.02{col 46}{space 3}0.317{col 54}{space 4}-13.16703{col 67}{space 3} 4.428879
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} .0247688{col 26}{space 2} .0044908{col 37}{space 1}    5.52{col 46}{space 3}0.000{col 54}{space 4} .0155379{col 67}{space 3} .0339997
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 2  {c |}{col 14}{res}{space 2} .0020855{col 26}{space 2} .0021488{col 37}{space 1}    0.97{col 46}{space 3}0.341{col 54}{space 4}-.0023315{col 67}{space 3} .0065025
{txt}{space 9} 3  {c |}{col 14}{res}{space 2} .0020515{col 26}{space 2} .0017192{col 37}{space 1}    1.19{col 46}{space 3}0.244{col 54}{space 4}-.0014823{col 67}{space 3} .0055853
{txt}{space 9} 4  {c |}{col 14}{res}{space 2}-.0029231{col 26}{space 2}  .002916{col 37}{space 1}   -1.00{col 46}{space 3}0.325{col 54}{space 4}-.0089171{col 67}{space 3} .0030708
{txt}{space 9} 5  {c |}{col 14}{res}{space 2} .0068196{col 26}{space 2} .0035856{col 37}{space 1}    1.90{col 46}{space 3}0.068{col 54}{space 4}-.0005507{col 67}{space 3} .0141899
{txt}{space 9} 6  {c |}{col 14}{res}{space 2}-.0163227{col 26}{space 2} .0059017{col 37}{space 1}   -2.77{col 46}{space 3}0.010{col 54}{space 4}-.0284539{col 67}{space 3}-.0041916
{txt}{space 9} 7  {c |}{col 14}{res}{space 2}-.0017705{col 26}{space 2} .0064987{col 37}{space 1}   -0.27{col 46}{space 3}0.787{col 54}{space 4}-.0151289{col 67}{space 3} .0115878
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-.0064596{col 26}{space 2} .0020399{col 37}{space 1}   -3.17{col 46}{space 3}0.004{col 54}{space 4}-.0106527{col 67}{space 3}-.0022666
{txt}{space 9} 9  {c |}{col 14}{res}{space 2}-.0140728{col 26}{space 2} .0016938{col 37}{space 1}   -8.31{col 46}{space 3}0.000{col 54}{space 4}-.0175545{col 67}{space 3}-.0105911
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0075627{col 26}{space 2} .0054873{col 37}{space 1}    1.38{col 46}{space 3}0.180{col 54}{space 4}-.0037167{col 67}{space 3} .0188421
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-.0005594{col 26}{space 2} .0039918{col 37}{space 1}   -0.14{col 46}{space 3}0.890{col 54}{space 4}-.0087647{col 67}{space 3}  .007646
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-.0104975{col 26}{space 2} .0027193{col 37}{space 1}   -3.86{col 46}{space 3}0.001{col 54}{space 4} -.016087{col 67}{space 3} -.004908
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-.0179183{col 26}{space 2} .0029088{col 37}{space 1}   -6.16{col 46}{space 3}0.000{col 54}{space 4}-.0238974{col 67}{space 3}-.0119392
{txt}{space 9}14  {c |}{col 14}{res}{space 2} .0193037{col 26}{space 2} .0020416{col 37}{space 1}    9.46{col 46}{space 3}0.000{col 54}{space 4} .0151072{col 67}{space 3} .0235003
{txt}{space 9}15  {c |}{col 14}{res}{space 2}-.0059881{col 26}{space 2} .0057002{col 37}{space 1}   -1.05{col 46}{space 3}0.303{col 54}{space 4}-.0177051{col 67}{space 3} .0057289
{txt}{space 9}16  {c |}{col 14}{res}{space 2} .0066119{col 26}{space 2} .0036379{col 37}{space 1}    1.82{col 46}{space 3}0.081{col 54}{space 4} -.000866{col 67}{space 3} .0140898
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-.0026325{col 26}{space 2} .0031083{col 37}{space 1}   -0.85{col 46}{space 3}0.405{col 54}{space 4}-.0090216{col 67}{space 3} .0037566
{txt}{space 9}18  {c |}{col 14}{res}{space 2} .0036297{col 26}{space 2}  .002194{col 37}{space 1}    1.65{col 46}{space 3}0.110{col 54}{space 4}-.0008802{col 67}{space 3} .0081396
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-.0036313{col 26}{space 2}  .003574{col 37}{space 1}   -1.02{col 46}{space 3}0.319{col 54}{space 4}-.0109778{col 67}{space 3} .0037152
{txt}{space 9}21  {c |}{col 14}{res}{space 2} .0174758{col 26}{space 2} .0032828{col 37}{space 1}    5.32{col 46}{space 3}0.000{col 54}{space 4}  .010728{col 67}{space 3} .0242236
{txt}{space 9}22  {c |}{col 14}{res}{space 2} -.034616{col 26}{space 2} .0058423{col 37}{space 1}   -5.93{col 46}{space 3}0.000{col 54}{space 4} -.046625{col 67}{space 3} -.022607
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-.0014211{col 26}{space 2} .0023825{col 37}{space 1}   -0.60{col 46}{space 3}0.556{col 54}{space 4}-.0063184{col 67}{space 3} .0034762
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-.0366211{col 26}{space 2} .0031063{col 37}{space 1}  -11.79{col 46}{space 3}0.000{col 54}{space 4}-.0430061{col 67}{space 3}-.0302361
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .0028483{col 26}{space 2} .0010083{col 37}{space 1}    2.82{col 46}{space 3}0.009{col 54}{space 4} .0007757{col 67}{space 3}  .004921
{txt}{space 9}26  {c |}{col 14}{res}{space 2} .0224458{col 26}{space 2} .0061859{col 37}{space 1}    3.63{col 46}{space 3}0.001{col 54}{space 4} .0097305{col 67}{space 3} .0351612
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-.0013436{col 26}{space 2} .0016057{col 37}{space 1}   -0.84{col 46}{space 3}0.410{col 54}{space 4}-.0046443{col 67}{space 3}  .001957
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .0022254{col 26}{space 2} .0021627{col 37}{space 1}    1.03{col 46}{space 3}0.313{col 54}{space 4}-.0022201{col 67}{space 3}  .006671
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-40.90715{col 26}{space 2} 7.761031{col 37}{space 1}   -5.27{col 46}{space 3}0.000{col 54}{space 4}-56.86018{col 67}{space 3}-24.95412
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.98913359
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 3.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 4.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 7.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 15.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 16.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 18.cid = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 21.cid = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 22.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 2.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 3.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 4.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 7.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(37)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(38)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(39)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(40)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(41)}{space 1} 15.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(42)}{space 1} 16.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(43)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(44)}{space 1} 18.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(45)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(46)}{space 1} 21.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(47)}{space 1} 22.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(48)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(49)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(50)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(51)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(52)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(53)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 5 dropped
       Constraint 7 dropped
       Constraint 8 dropped
       Constraint 11 dropped
       Constraint 12 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 16 dropped
       Constraint 17 dropped
       Constraint 19 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped
       Constraint 34 dropped
       Constraint 35 dropped
       Constraint 36 dropped
       Constraint 37 dropped
       Constraint 38 dropped
       Constraint 39 dropped
       Constraint 40 dropped
       Constraint 41 dropped
       Constraint 42 dropped
       Constraint 43 dropped
       Constraint 44 dropped
       Constraint 45 dropped
       Constraint 46 dropped
       Constraint 47 dropped
       Constraint 48 dropped
       Constraint 49 dropped
       Constraint 50 dropped
       Constraint 51 dropped
       Constraint 52 dropped
       Constraint 53 dropped

       F(  7,    26) ={res}  474.72
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 2.cid#c.year  3.cid#c.year  4.cid#c.year  5.cid#c.year  ///
>          6.cid#c.year  7.cid#c.year  8.cid#c.year  9.cid#c.year  10.cid#c.year  ///
>                  11.cid#c.year  12.cid#c.year  13.cid#c.year  14.cid#c.year  15.cid#c.year  ///
>                  16.cid#c.year  17.cid#c.year  18.cid#c.year  19.cid#c.year    ///
>                  21.cid#c.year  22.cid#c.year  23.cid#c.year  24.cid#c.year  25.cid#c.year  ///
>                  26.cid#c.year  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 3.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 4.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 7.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 15.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 16.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 18.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 21.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 22.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 5 dropped
       Constraint 7 dropped
       Constraint 8 dropped
       Constraint 11 dropped
       Constraint 12 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 16 dropped
       Constraint 17 dropped
       Constraint 19 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 25 dropped
       Constraint 26 dropped

       F(  7,    26) ={res}  486.19
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       383{col 27}-233.1909{col 38} 665.5087{col 49}     7{col 58}-1317.017{col 69}-1289.381
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 319) = {res}     1.98
                  {txt}Prob > F =      {res}0.1164
{txt}
{com}. 
. reg lhl lprod k pop14 pop65 male llex linfmo ltobaco lalcohc cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       261
                                                {txt}{help j_robustsingular:F(8, 18) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.9955
                                                {txt}Root MSE          =    {res} .03333

{txt}{ralign 78:(Std. Err. adjusted for {res:19} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2} .0084097{col 26}{space 2} .0900703{col 37}{space 1}    0.09{col 46}{space 3}0.927{col 54}{space 4}-.1808211{col 67}{space 3} .1976404
{txt}{space 11}k {c |}{col 14}{res}{space 2} .0039215{col 26}{space 2} .0029348{col 37}{space 1}    1.34{col 46}{space 3}0.198{col 54}{space 4}-.0022444{col 67}{space 3} .0100874
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2} .0444244{col 26}{space 2} .0227115{col 37}{space 1}    1.96{col 46}{space 3}0.066{col 54}{space 4}-.0032907{col 67}{space 3} .0921396
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}-.0134822{col 26}{space 2} .0222734{col 37}{space 1}   -0.61{col 46}{space 3}0.553{col 54}{space 4} -.060277{col 67}{space 3} .0333126
{txt}{space 8}male {c |}{col 14}{res}{space 2}-.0416007{col 26}{space 2} .0561933{col 37}{space 1}   -0.74{col 46}{space 3}0.469{col 54}{space 4}-.1596584{col 67}{space 3}  .076457
{txt}{space 8}llex {c |}{col 14}{res}{space 2} 1.442443{col 26}{space 2} 2.110036{col 37}{space 1}    0.68{col 46}{space 3}0.503{col 54}{space 4}-2.990578{col 67}{space 3} 5.875464
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2} .0148415{col 26}{space 2} .0139564{col 37}{space 1}    1.06{col 46}{space 3}0.302{col 54}{space 4}-.0144798{col 67}{space 3} .0441629
{txt}{space 5}ltobaco {c |}{col 14}{res}{space 2}-.0917384{col 26}{space 2} .0520908{col 37}{space 1}   -1.76{col 46}{space 3}0.095{col 54}{space 4}-.2011771{col 67}{space 3} .0177004
{txt}{space 5}lalcohc {c |}{col 14}{res}{space 2}-.0506772{col 26}{space 2} .0923515{col 37}{space 1}   -0.55{col 46}{space 3}0.590{col 54}{space 4}-.2447005{col 67}{space 3} .1433461
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}4  {c |}{col 14}{res}{space 2} 11.38305{col 26}{space 2} 7.804349{col 37}{space 1}    1.46{col 46}{space 3}0.162{col 54}{space 4}-5.013278{col 67}{space 3} 27.77938
{txt}{space 10}5  {c |}{col 14}{res}{space 2}-23.41669{col 26}{space 2} 3.966579{col 37}{space 1}   -5.90{col 46}{space 3}0.000{col 54}{space 4}-31.75016{col 67}{space 3}-15.08322
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 38.32384{col 26}{space 2} 10.09559{col 37}{space 1}    3.80{col 46}{space 3}0.001{col 54}{space 4}  17.1138{col 67}{space 3} 59.53388
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 6.268901{col 26}{space 2} 6.878688{col 37}{space 1}    0.91{col 46}{space 3}0.374{col 54}{space 4}-8.182687{col 67}{space 3} 20.72049
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 30.77173{col 26}{space 2} 5.742344{col 37}{space 1}    5.36{col 46}{space 3}0.000{col 54}{space 4} 18.70752{col 67}{space 3} 42.83595
{txt}{space 9}10  {c |}{col 14}{res}{space 2} -20.7346{col 26}{space 2} 13.37074{col 37}{space 1}   -1.55{col 46}{space 3}0.138{col 54}{space 4}-48.82549{col 67}{space 3} 7.356285
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-21.02728{col 26}{space 2} 8.802524{col 37}{space 1}   -2.39{col 46}{space 3}0.028{col 54}{space 4} -39.5207{col 67}{space 3}-2.533867
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 14.73491{col 26}{space 2}  5.14086{col 37}{space 1}    2.87{col 46}{space 3}0.010{col 54}{space 4} 3.934359{col 67}{space 3} 25.53545
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 30.63929{col 26}{space 2} 5.845253{col 37}{space 1}    5.24{col 46}{space 3}0.000{col 54}{space 4} 18.35887{col 67}{space 3} 42.91971
{txt}{space 9}14  {c |}{col 14}{res}{space 2} -26.9464{col 26}{space 2} 7.316835{col 37}{space 1}   -3.68{col 46}{space 3}0.002{col 54}{space 4} -42.3185{col 67}{space 3} -11.5743
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 7.356382{col 26}{space 2} 5.029433{col 37}{space 1}    1.46{col 46}{space 3}0.161{col 54}{space 4}-3.210064{col 67}{space 3} 17.92283
{txt}{space 9}18  {c |}{col 14}{res}{space 2}-9.216053{col 26}{space 2} 4.695676{col 37}{space 1}   -1.96{col 46}{space 3}0.065{col 54}{space 4} -19.0813{col 67}{space 3} .6491957
{txt}{space 9}19  {c |}{col 14}{res}{space 2} 16.71242{col 26}{space 2} 11.68208{col 37}{space 1}    1.43{col 46}{space 3}0.170{col 54}{space 4}-7.830722{col 67}{space 3} 41.25555
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 77.21559{col 26}{space 2} 7.744292{col 37}{space 1}    9.97{col 46}{space 3}0.000{col 54}{space 4} 60.94544{col 67}{space 3} 93.48575
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-7.233355{col 26}{space 2} 2.876255{col 37}{space 1}   -2.51{col 46}{space 3}0.022{col 54}{space 4}-13.27614{col 67}{space 3}-1.190567
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-47.46189{col 26}{space 2} 8.957581{col 37}{space 1}   -5.30{col 46}{space 3}0.000{col 54}{space 4}-66.28107{col 67}{space 3}-28.64271
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 9.324336{col 26}{space 2}  3.52279{col 37}{space 1}    2.65{col 46}{space 3}0.016{col 54}{space 4} 1.923229{col 67}{space 3} 16.72544
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-8.090945{col 26}{space 2} 4.902137{col 37}{space 1}   -1.65{col 46}{space 3}0.116{col 54}{space 4}-18.38995{col 67}{space 3} 2.208062
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} .0162867{col 26}{space 2} .0072699{col 37}{space 1}    2.24{col 46}{space 3}0.038{col 54}{space 4} .0010133{col 67}{space 3} .0315601
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 4  {c |}{col 14}{res}{space 2} -.005625{col 26}{space 2}  .003926{col 37}{space 1}   -1.43{col 46}{space 3}0.169{col 54}{space 4}-.0138731{col 67}{space 3} .0026232
{txt}{space 9} 5  {c |}{col 14}{res}{space 2} .0116397{col 26}{space 2} .0020264{col 37}{space 1}    5.74{col 46}{space 3}0.000{col 54}{space 4} .0073824{col 67}{space 3} .0158969
{txt}{space 9} 6  {c |}{col 14}{res}{space 2}-.0187752{col 26}{space 2} .0050063{col 37}{space 1}   -3.75{col 46}{space 3}0.001{col 54}{space 4} -.029293{col 67}{space 3}-.0082575
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-.0028859{col 26}{space 2} .0034068{col 37}{space 1}   -0.85{col 46}{space 3}0.408{col 54}{space 4}-.0100432{col 67}{space 3} .0042715
{txt}{space 9} 9  {c |}{col 14}{res}{space 2}-.0153582{col 26}{space 2} .0028736{col 37}{space 1}   -5.34{col 46}{space 3}0.000{col 54}{space 4}-.0213955{col 67}{space 3}-.0093209
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0105583{col 26}{space 2} .0066793{col 37}{space 1}    1.58{col 46}{space 3}0.131{col 54}{space 4}-.0034743{col 67}{space 3} .0245909
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .0103224{col 26}{space 2} .0044644{col 37}{space 1}    2.31{col 46}{space 3}0.033{col 54}{space 4}  .000943{col 67}{space 3} .0197018
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-.0074023{col 26}{space 2} .0024766{col 37}{space 1}   -2.99{col 46}{space 3}0.008{col 54}{space 4}-.0126055{col 67}{space 3}-.0021991
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-.0151795{col 26}{space 2} .0028873{col 37}{space 1}   -5.26{col 46}{space 3}0.000{col 54}{space 4}-.0212455{col 67}{space 3}-.0091134
{txt}{space 9}14  {c |}{col 14}{res}{space 2} .0134197{col 26}{space 2}  .003653{col 37}{space 1}    3.67{col 46}{space 3}0.002{col 54}{space 4} .0057451{col 67}{space 3} .0210944
{txt}{space 9}17  {c |}{col 14}{res}{space 2} -.003413{col 26}{space 2} .0024944{col 37}{space 1}   -1.37{col 46}{space 3}0.188{col 54}{space 4}-.0086536{col 67}{space 3} .0018276
{txt}{space 9}18  {c |}{col 14}{res}{space 2} .0044758{col 26}{space 2}  .002367{col 37}{space 1}    1.89{col 46}{space 3}0.075{col 54}{space 4}-.0004971{col 67}{space 3} .0094487
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-.0080128{col 26}{space 2} .0058273{col 37}{space 1}   -1.38{col 46}{space 3}0.186{col 54}{space 4}-.0202556{col 67}{space 3} .0042299
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-.0382139{col 26}{space 2}  .003847{col 37}{space 1}   -9.93{col 46}{space 3}0.000{col 54}{space 4}-.0462962{col 67}{space 3}-.0301317
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .0037542{col 26}{space 2} .0014582{col 37}{space 1}    2.57{col 46}{space 3}0.019{col 54}{space 4} .0006906{col 67}{space 3} .0068179
{txt}{space 9}26  {c |}{col 14}{res}{space 2} .0227968{col 26}{space 2} .0045023{col 37}{space 1}    5.06{col 46}{space 3}0.000{col 54}{space 4} .0133379{col 67}{space 3} .0322557
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-.0045353{col 26}{space 2} .0017374{col 37}{space 1}   -2.61{col 46}{space 3}0.018{col 54}{space 4}-.0081855{col 67}{space 3}-.0008851
{txt}{space 9}28  {c |}{col 14}{res}{space 2}  .004129{col 26}{space 2} .0024798{col 37}{space 1}    1.67{col 46}{space 3}0.113{col 54}{space 4} -.001081{col 67}{space 3} .0093389
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-34.92694{col 26}{space 2} 8.505469{col 37}{space 1}   -4.11{col 46}{space 3}0.001{col 54}{space 4}-52.79627{col 67}{space 3}-17.05761
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.99453205
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 18.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 4.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 18.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(37)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 4 dropped
       Constraint 8 dropped
       Constraint 11 dropped
       Constraint 12 dropped
       Constraint 15 dropped
       Constraint 17 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped
       Constraint 34 dropped
       Constraint 35 dropped
       Constraint 36 dropped
       Constraint 37 dropped

       F(  9,    18) ={res} 1243.33
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 4.cid#c.year  5.cid#c.year  6.cid#c.year  8.cid#c.year  ///
>          9.cid#c.year  10.cid#c.year  11.cid#c.year  12.cid#c.year  ///
>                  13.cid#c.year  14.cid#c.year  17.cid#c.year  18.cid#c.year ///
>                  19.cid#c.year  24.cid#c.year  25.cid#c.year  26.cid#c.year ///
>                  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 18.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 4 dropped
       Constraint 8 dropped
       Constraint 11 dropped
       Constraint 12 dropped
       Constraint 15 dropped
       Constraint 17 dropped
       Constraint 18 dropped

       F(  9,    18) ={res} 1201.33
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       261{col 27}-161.8898{col 38} 543.2745{col 49}     9{col 58}-1068.549{col 69}-1036.468
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 211) = {res}     1.17
                  {txt}Prob > F =      {res}0.3238
{txt}
{com}. 
. reg lhl lprod k pop14 pop65 male llex linfmo ltobaco lalcohc gdpg cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       261
                                                {txt}{help j_robustsingular:F(9, 18) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.9956
                                                {txt}Root MSE          =    {res} .03301

{txt}{ralign 78:(Std. Err. adjusted for {res:19} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}         lhl{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}lprod {c |}{col 14}{res}{space 2}-.0189229{col 26}{space 2} .0886919{col 37}{space 1}   -0.21{col 46}{space 3}0.833{col 54}{space 4}-.2052578{col 67}{space 3} .1674119
{txt}{space 11}k {c |}{col 14}{res}{space 2} .0027622{col 26}{space 2} .0032192{col 37}{space 1}    0.86{col 46}{space 3}0.402{col 54}{space 4} -.004001{col 67}{space 3} .0095255
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}  .044709{col 26}{space 2} .0203679{col 37}{space 1}    2.20{col 46}{space 3}0.042{col 54}{space 4} .0019176{col 67}{space 3} .0875003
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}-.0120024{col 26}{space 2} .0192214{col 37}{space 1}   -0.62{col 46}{space 3}0.540{col 54}{space 4} -.052385{col 67}{space 3} .0283802
{txt}{space 8}male {c |}{col 14}{res}{space 2}-.0335831{col 26}{space 2} .0434741{col 37}{space 1}   -0.77{col 46}{space 3}0.450{col 54}{space 4}-.1249188{col 67}{space 3} .0577526
{txt}{space 8}llex {c |}{col 14}{res}{space 2} 1.020236{col 26}{space 2} 2.305922{col 37}{space 1}    0.44{col 46}{space 3}0.663{col 54}{space 4}-3.824326{col 67}{space 3} 5.864799
{txt}{space 6}linfmo {c |}{col 14}{res}{space 2}  .013337{col 26}{space 2}  .015207{col 37}{space 1}    0.88{col 46}{space 3}0.392{col 54}{space 4}-.0186117{col 67}{space 3} .0452858
{txt}{space 5}ltobaco {c |}{col 14}{res}{space 2}-.0929876{col 26}{space 2} .0542417{col 37}{space 1}   -1.71{col 46}{space 3}0.104{col 54}{space 4}-.2069452{col 67}{space 3} .0209699
{txt}{space 5}lalcohc {c |}{col 14}{res}{space 2}-.0580888{col 26}{space 2} .0890445{col 37}{space 1}   -0.65{col 46}{space 3}0.522{col 54}{space 4}-.2451645{col 67}{space 3} .1289868
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2} .0024094{col 26}{space 2} .0019524{col 37}{space 1}    1.23{col 46}{space 3}0.233{col 54}{space 4}-.0016925{col 67}{space 3} .0065113
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}4  {c |}{col 14}{res}{space 2} 12.90037{col 26}{space 2}  8.45899{col 37}{space 1}    1.53{col 46}{space 3}0.145{col 54}{space 4}-4.871307{col 67}{space 3} 30.67205
{txt}{space 10}5  {c |}{col 14}{res}{space 2}-24.44111{col 26}{space 2} 3.708678{col 37}{space 1}   -6.59{col 46}{space 3}0.000{col 54}{space 4}-32.23275{col 67}{space 3}-16.64947
{txt}{space 10}6  {c |}{col 14}{res}{space 2}  38.7849{col 26}{space 2} 9.457614{col 37}{space 1}    4.10{col 46}{space 3}0.001{col 54}{space 4} 18.91519{col 67}{space 3} 58.65461
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 6.508536{col 26}{space 2}  6.07382{col 37}{space 1}    1.07{col 46}{space 3}0.298{col 54}{space 4}-6.252085{col 67}{space 3} 19.26916
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 32.06316{col 26}{space 2} 5.516343{col 37}{space 1}    5.81{col 46}{space 3}0.000{col 54}{space 4} 20.47375{col 67}{space 3} 43.65257
{txt}{space 9}10  {c |}{col 14}{res}{space 2} -18.9087{col 26}{space 2} 11.35591{col 37}{space 1}   -1.67{col 46}{space 3}0.113{col 54}{space 4}-42.76658{col 67}{space 3} 4.949179
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-18.91688{col 26}{space 2} 9.641392{col 37}{space 1}   -1.96{col 46}{space 3}0.065{col 54}{space 4}-39.17269{col 67}{space 3} 1.338935
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 10.47621{col 26}{space 2} 6.268979{col 37}{space 1}    1.67{col 46}{space 3}0.112{col 54}{space 4}-2.694425{col 67}{space 3} 23.64685
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 30.80427{col 26}{space 2} 5.541257{col 37}{space 1}    5.56{col 46}{space 3}0.000{col 54}{space 4} 19.16253{col 67}{space 3} 42.44602
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-30.69049{col 26}{space 2}  8.07057{col 37}{space 1}   -3.80{col 46}{space 3}0.001{col 54}{space 4}-47.64613{col 67}{space 3}-13.73485
{txt}{space 9}17  {c |}{col 14}{res}{space 2}  8.09894{col 26}{space 2} 4.367195{col 37}{space 1}    1.85{col 46}{space 3}0.080{col 54}{space 4}-1.076196{col 67}{space 3} 17.27408
{txt}{space 9}18  {c |}{col 14}{res}{space 2} -9.34834{col 26}{space 2} 4.058554{col 37}{space 1}   -2.30{col 46}{space 3}0.033{col 54}{space 4}-17.87505{col 67}{space 3}-.8216344
{txt}{space 9}19  {c |}{col 14}{res}{space 2} 14.76386{col 26}{space 2} 10.97675{col 37}{space 1}    1.35{col 46}{space 3}0.195{col 54}{space 4}-8.297435{col 67}{space 3} 37.82515
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 77.52904{col 26}{space 2} 7.802697{col 37}{space 1}    9.94{col 46}{space 3}0.000{col 54}{space 4} 61.13618{col 67}{space 3}  93.9219
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-5.404083{col 26}{space 2}  2.66609{col 37}{space 1}   -2.03{col 46}{space 3}0.058{col 54}{space 4}-11.00533{col 67}{space 3} .1971641
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-52.53441{col 26}{space 2} 7.427011{col 37}{space 1}   -7.07{col 46}{space 3}0.000{col 54}{space 4}-68.13798{col 67}{space 3}-36.93084
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 10.10956{col 26}{space 2} 3.811406{col 37}{space 1}    2.65{col 46}{space 3}0.016{col 54}{space 4} 2.102089{col 67}{space 3} 18.11702
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-5.958349{col 26}{space 2} 5.982054{col 37}{space 1}   -1.00{col 46}{space 3}0.332{col 54}{space 4}-18.52618{col 67}{space 3}  6.60948
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} .0190682{col 26}{space 2} .0082836{col 37}{space 1}    2.30{col 46}{space 3}0.033{col 54}{space 4} .0016649{col 67}{space 3} .0364714
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 4  {c |}{col 14}{res}{space 2} -.006385{col 26}{space 2} .0042492{col 37}{space 1}   -1.50{col 46}{space 3}0.150{col 54}{space 4}-.0153124{col 67}{space 3} .0025423
{txt}{space 9} 5  {c |}{col 14}{res}{space 2}  .012135{col 26}{space 2} .0018813{col 37}{space 1}    6.45{col 46}{space 3}0.000{col 54}{space 4} .0081825{col 67}{space 3} .0160875
{txt}{space 9} 6  {c |}{col 14}{res}{space 2}-.0190075{col 26}{space 2} .0046838{col 37}{space 1}   -4.06{col 46}{space 3}0.001{col 54}{space 4}-.0288479{col 67}{space 3}-.0091671
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-.0030076{col 26}{space 2} .0030159{col 37}{space 1}   -1.00{col 46}{space 3}0.332{col 54}{space 4}-.0093438{col 67}{space 3} .0033286
{txt}{space 9} 9  {c |}{col 14}{res}{space 2} -.015997{col 26}{space 2} .0027554{col 37}{space 1}   -5.81{col 46}{space 3}0.000{col 54}{space 4}-.0217858{col 67}{space 3}-.0102081
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0096487{col 26}{space 2} .0056883{col 37}{space 1}    1.70{col 46}{space 3}0.107{col 54}{space 4} -.002302{col 67}{space 3} .0215994
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .0092589{col 26}{space 2} .0048859{col 37}{space 1}    1.90{col 46}{space 3}0.074{col 54}{space 4} -.001006{col 67}{space 3} .0195237
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-.0053016{col 26}{space 2} .0029846{col 37}{space 1}   -1.78{col 46}{space 3}0.093{col 54}{space 4}-.0115721{col 67}{space 3} .0009689
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-.0152665{col 26}{space 2} .0027338{col 37}{space 1}   -5.58{col 46}{space 3}0.000{col 54}{space 4}  -.02101{col 67}{space 3}-.0095231
{txt}{space 9}14  {c |}{col 14}{res}{space 2}  .015285{col 26}{space 2} .0040183{col 37}{space 1}    3.80{col 46}{space 3}0.001{col 54}{space 4} .0068428{col 67}{space 3} .0237271
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-.0037821{col 26}{space 2} .0021652{col 37}{space 1}   -1.75{col 46}{space 3}0.098{col 54}{space 4} -.008331{col 67}{space 3} .0007669
{txt}{space 9}18  {c |}{col 14}{res}{space 2} .0045379{col 26}{space 2} .0020478{col 37}{space 1}    2.22{col 46}{space 3}0.040{col 54}{space 4} .0002357{col 67}{space 3} .0088401
{txt}{space 9}19  {c |}{col 14}{res}{space 2} -.007037{col 26}{space 2} .0054757{col 37}{space 1}   -1.29{col 46}{space 3}0.215{col 54}{space 4}-.0185409{col 67}{space 3} .0044669
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-.0383718{col 26}{space 2} .0038792{col 37}{space 1}   -9.89{col 46}{space 3}0.000{col 54}{space 4}-.0465216{col 67}{space 3} -.030222
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .0028484{col 26}{space 2} .0013575{col 37}{space 1}    2.10{col 46}{space 3}0.050{col 54}{space 4}-3.67e-06{col 67}{space 3} .0057004
{txt}{space 9}26  {c |}{col 14}{res}{space 2} .0252912{col 26}{space 2} .0037125{col 37}{space 1}    6.81{col 46}{space 3}0.000{col 54}{space 4} .0174916{col 67}{space 3} .0330907
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-.0049272{col 26}{space 2} .0018832{col 37}{space 1}   -2.62{col 46}{space 3}0.017{col 54}{space 4}-.0088836{col 67}{space 3}-.0009707
{txt}{space 9}28  {c |}{col 14}{res}{space 2}   .00306{col 26}{space 2} .0030234{col 37}{space 1}    1.01{col 46}{space 3}0.325{col 54}{space 4}-.0032919{col 67}{space 3} .0094119
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-38.84455{col 26}{space 2} 8.498188{col 37}{space 1}   -4.57{col 46}{space 3}0.000{col 54}{space 4}-56.69858{col 67}{space 3}-20.99052
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.99463919
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 18.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 4.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 18.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(37)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 4 dropped
       Constraint 11 dropped
       Constraint 12 dropped
       Constraint 15 dropped
       Constraint 17 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped
       Constraint 34 dropped
       Constraint 35 dropped
       Constraint 36 dropped
       Constraint 37 dropped

       F( 10,    18) ={res} 4853.27
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 4.cid#c.year  5.cid#c.year  6.cid#c.year  8.cid#c.year  ///
>          9.cid#c.year  10.cid#c.year  11.cid#c.year  12.cid#c.year  ///
>                  13.cid#c.year  14.cid#c.year  17.cid#c.year  18.cid#c.year ///
>                  19.cid#c.year  24.cid#c.year  25.cid#c.year  26.cid#c.year ///
>                  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}4.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 18.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 4 dropped
       Constraint 11 dropped
       Constraint 12 dropped
       Constraint 15 dropped
       Constraint 17 dropped
       Constraint 18 dropped

       F( 10,    18) ={res} 4796.09
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       261{col 27}-161.8898{col 38}  546.468{col 49}    10{col 58}-1072.936{col 69}-1037.291
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of lhl
       Ho:  model has no omitted variables
                 F(3, 210) = {res}     0.58
                  {txt}Prob > F =      {res}0.6264
{txt}
{com}. 
. 
. 
. 
. ///////////////////////////////////////////////
> ///////////////////  TABLE 3 //////////////////
> ///////////////////////////////////////////////
> 
. reg phpnh prod pop14 pop65 male lex infmo, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       456
                                                {txt}F(6, 23)          =  {res}    20.04
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4286
                                                {txt}Root MSE          =    {res} 12.657

{txt}{ralign 78:(Std. Err. adjusted for {res:24} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.1041296{col 26}{space 2} .1175118{col 37}{space 1}   -0.89{col 46}{space 3}0.385{col 54}{space 4}-.3472213{col 67}{space 3}  .138962
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-.7489909{col 26}{space 2} 1.092542{col 37}{space 1}   -0.69{col 46}{space 3}0.500{col 54}{space 4}-3.009086{col 67}{space 3} 1.511105
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .1235444{col 26}{space 2} 1.173591{col 37}{space 1}    0.11{col 46}{space 3}0.917{col 54}{space 4}-2.304214{col 67}{space 3} 2.551303
{txt}{space 8}male {c |}{col 14}{res}{space 2} 2.252249{col 26}{space 2} 2.754872{col 37}{space 1}    0.82{col 46}{space 3}0.422{col 54}{space 4}-3.446637{col 67}{space 3} 7.951136
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 2.506921{col 26}{space 2} 1.295496{col 37}{space 1}    1.94{col 46}{space 3}0.065{col 54}{space 4}-.1730169{col 67}{space 3} 5.186858
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 3.155792{col 26}{space 2} .4537326{col 37}{space 1}    6.96{col 46}{space 3}0.000{col 54}{space 4} 2.217174{col 67}{space 3} 4.094409
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-207.6905{col 26}{space 2} 116.9594{col 37}{space 1}   -1.78{col 46}{space 3}0.089{col 54}{space 4}-449.6393{col 67}{space 3} 34.25842
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.42097874
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       456{col 27}-1928.546{col 38}-1800.937{col 49}     7{col 58} 3615.874{col 69} 3644.731
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 446) = {res}    39.74
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod pop14 pop65 male lex infmo tobaco alcohc, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}F(8, 16)          =  {res}   135.46
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6023
                                                {txt}Root MSE          =    {res} 12.571

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.2938561{col 26}{space 2} .1071492{col 37}{space 1}   -2.74{col 46}{space 3}0.014{col 54}{space 4}-.5210022{col 67}{space 3}-.0667101
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-.9243886{col 26}{space 2} 1.315508{col 37}{space 1}   -0.70{col 46}{space 3}0.492{col 54}{space 4}-3.713141{col 67}{space 3} 1.864364
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .6545406{col 26}{space 2} 1.410357{col 37}{space 1}    0.46{col 46}{space 3}0.649{col 54}{space 4}-2.335282{col 67}{space 3} 3.644363
{txt}{space 8}male {c |}{col 14}{res}{space 2} 5.422246{col 26}{space 2} 6.140493{col 37}{space 1}    0.88{col 46}{space 3}0.390{col 54}{space 4}-7.595019{col 67}{space 3} 18.43951
{txt}{space 9}lex {c |}{col 14}{res}{space 2}  3.85213{col 26}{space 2} 1.493607{col 37}{space 1}    2.58{col 46}{space 3}0.020{col 54}{space 4} .6858243{col 67}{space 3} 7.018436
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 3.628805{col 26}{space 2} .5030668{col 37}{space 1}    7.21{col 46}{space 3}0.000{col 54}{space 4} 2.562351{col 67}{space 3} 4.695259
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2}-.0031416{col 26}{space 2} .0034805{col 37}{space 1}   -0.90{col 46}{space 3}0.380{col 54}{space 4}  -.01052{col 67}{space 3} .0042368
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2}-.2324717{col 26}{space 2}  1.06216{col 37}{space 1}   -0.22{col 46}{space 3}0.830{col 54}{space 4}-2.484151{col 67}{space 3} 2.019208
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-463.7813{col 26}{space 2} 240.0492{col 37}{space 1}   -1.93{col 46}{space 3}0.071{col 54}{space 4} -972.663{col 67}{space 3} 45.10028
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.59075012
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-1117.313{col 49}     9{col 58} 2252.626{col 69} 2285.466
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 272) = {res}    27.21
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod pop14 pop65 male lex infmo tobaco alcohc gdpg, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}F(9, 16)          =  {res}   155.82
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6061
                                                {txt}Root MSE          =    {res} 12.533

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.2910665{col 26}{space 2} .1142931{col 37}{space 1}   -2.55{col 46}{space 3}0.022{col 54}{space 4}-.5333571{col 67}{space 3}-.0487759
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-.8012648{col 26}{space 2} 1.272258{col 37}{space 1}   -0.63{col 46}{space 3}0.538{col 54}{space 4}-3.498332{col 67}{space 3} 1.895803
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .6272392{col 26}{space 2} 1.364718{col 37}{space 1}    0.46{col 46}{space 3}0.652{col 54}{space 4}-2.265833{col 67}{space 3} 3.520312
{txt}{space 8}male {c |}{col 14}{res}{space 2} 5.724329{col 26}{space 2} 5.967904{col 37}{space 1}    0.96{col 46}{space 3}0.352{col 54}{space 4}-6.927062{col 67}{space 3} 18.37572
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 3.712161{col 26}{space 2} 1.472787{col 37}{space 1}    2.52{col 46}{space 3}0.023{col 54}{space 4} .5899922{col 67}{space 3} 6.834329
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 3.577119{col 26}{space 2} .5098934{col 37}{space 1}    7.02{col 46}{space 3}0.000{col 54}{space 4} 2.496194{col 67}{space 3} 4.658045
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2}-.0031003{col 26}{space 2} .0033788{col 37}{space 1}   -0.92{col 46}{space 3}0.372{col 54}{space 4}-.0102631{col 67}{space 3} .0040625
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2}-.1711395{col 26}{space 2} 1.035211{col 37}{space 1}   -0.17{col 46}{space 3}0.871{col 54}{space 4}-2.365689{col 67}{space 3} 2.023409
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2}-.3831727{col 26}{space 2} .3007747{col 37}{space 1}   -1.27{col 46}{space 3}0.221{col 54}{space 4}-1.020787{col 67}{space 3} .2544411
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-469.0735{col 26}{space 2} 235.3925{col 37}{space 1}   -1.99{col 46}{space 3}0.064{col 54}{space 4}-968.0834{col 67}{space 3} 29.93634
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.59318156
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-1115.949{col 49}    10{col 58} 2251.899{col 69} 2288.388
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 271) = {res}    27.40
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. 
. reg phpnh prod pop14 pop65 male lex infmo  i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       456
                                                {txt}{help j_robustsingular:F(22, 23) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.7083
                                                {txt}Root MSE          =    {res} 9.4986

{txt}{ralign 78:(Std. Err. adjusted for {res:24} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2} .2665981{col 26}{space 2} .3902533{col 37}{space 1}    0.68{col 46}{space 3}0.501{col 54}{space 4}-.5407024{col 67}{space 3} 1.073899
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-3.455912{col 26}{space 2} 2.156466{col 37}{space 1}   -1.60{col 46}{space 3}0.123{col 54}{space 4}-7.916901{col 67}{space 3} 1.005077
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}  2.60759{col 26}{space 2} 2.235416{col 37}{space 1}    1.17{col 46}{space 3}0.255{col 54}{space 4}-2.016719{col 67}{space 3}   7.2319
{txt}{space 8}male {c |}{col 14}{res}{space 2}-2.461109{col 26}{space 2} 9.355272{col 37}{space 1}   -0.26{col 46}{space 3}0.795{col 54}{space 4}-21.81396{col 67}{space 3} 16.89174
{txt}{space 9}lex {c |}{col 14}{res}{space 2} .8934922{col 26}{space 2} 2.945517{col 37}{space 1}    0.30{col 46}{space 3}0.764{col 54}{space 4}-5.199774{col 67}{space 3} 6.986758
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 2.677758{col 26}{space 2} .3342209{col 37}{space 1}    8.01{col 46}{space 3}0.000{col 54}{space 4} 1.986369{col 67}{space 3} 3.369146
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1997  {c |}{col 14}{res}{space 2} -1.39032{col 26}{space 2} 1.944129{col 37}{space 1}   -0.72{col 46}{space 3}0.482{col 54}{space 4}-5.412057{col 67}{space 3} 2.631417
{txt}{space 7}1998  {c |}{col 14}{res}{space 2}-1.237847{col 26}{space 2} 4.297901{col 37}{space 1}   -0.29{col 46}{space 3}0.776{col 54}{space 4}-10.12873{col 67}{space 3}  7.65304
{txt}{space 7}1999  {c |}{col 14}{res}{space 2} 1.655316{col 26}{space 2} 6.143528{col 37}{space 1}    0.27{col 46}{space 3}0.790{col 54}{space 4}-11.05354{col 67}{space 3} 14.36417
{txt}{space 7}2000  {c |}{col 14}{res}{space 2} 1.522451{col 26}{space 2} 8.379541{col 37}{space 1}    0.18{col 46}{space 3}0.857{col 54}{space 4}-15.81195{col 67}{space 3} 18.85685
{txt}{space 7}2001  {c |}{col 14}{res}{space 2} .7050249{col 26}{space 2} 9.347974{col 37}{space 1}    0.08{col 46}{space 3}0.941{col 54}{space 4}-18.63273{col 67}{space 3} 20.04278
{txt}{space 7}2002  {c |}{col 14}{res}{space 2} .6315543{col 26}{space 2} 9.084388{col 37}{space 1}    0.07{col 46}{space 3}0.945{col 54}{space 4}-18.16093{col 67}{space 3} 19.42404
{txt}{space 7}2003  {c |}{col 14}{res}{space 2} .6461888{col 26}{space 2} 9.463461{col 37}{space 1}    0.07{col 46}{space 3}0.946{col 54}{space 4}-18.93047{col 67}{space 3} 20.22285
{txt}{space 7}2004  {c |}{col 14}{res}{space 2} 1.158405{col 26}{space 2} 11.36787{col 37}{space 1}    0.10{col 46}{space 3}0.920{col 54}{space 4}-22.35783{col 67}{space 3} 24.67464
{txt}{space 7}2005  {c |}{col 14}{res}{space 2} .8486526{col 26}{space 2} 12.01584{col 37}{space 1}    0.07{col 46}{space 3}0.944{col 54}{space 4}  -24.008{col 67}{space 3}  25.7053
{txt}{space 7}2006  {c |}{col 14}{res}{space 2}-1.212795{col 26}{space 2} 13.46844{col 37}{space 1}   -0.09{col 46}{space 3}0.929{col 54}{space 4}-29.07439{col 67}{space 3}  26.6488
{txt}{space 7}2007  {c |}{col 14}{res}{space 2}-1.569008{col 26}{space 2} 14.93766{col 37}{space 1}   -0.11{col 46}{space 3}0.917{col 54}{space 4}-32.46992{col 67}{space 3} 29.33191
{txt}{space 7}2008  {c |}{col 14}{res}{space 2}-4.534483{col 26}{space 2} 15.78016{col 37}{space 1}   -0.29{col 46}{space 3}0.776{col 54}{space 4}-37.17823{col 67}{space 3} 28.10927
{txt}{space 7}2009  {c |}{col 14}{res}{space 2} -4.39594{col 26}{space 2}  16.2472{col 37}{space 1}   -0.27{col 46}{space 3}0.789{col 54}{space 4}-38.00583{col 67}{space 3} 29.21395
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}-6.567606{col 26}{space 2} 17.22087{col 37}{space 1}   -0.38{col 46}{space 3}0.706{col 54}{space 4}-42.19169{col 67}{space 3} 29.05648
{txt}{space 7}2011  {c |}{col 14}{res}{space 2}-8.579117{col 26}{space 2} 18.24618{col 37}{space 1}   -0.47{col 46}{space 3}0.643{col 54}{space 4}-46.32422{col 67}{space 3} 29.16599
{txt}{space 7}2012  {c |}{col 14}{res}{space 2}-10.64965{col 26}{space 2} 18.62089{col 37}{space 1}   -0.57{col 46}{space 3}0.573{col 54}{space 4}-49.16989{col 67}{space 3} 27.87059
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-12.91652{col 26}{space 2} 19.59223{col 37}{space 1}   -0.66{col 46}{space 3}0.516{col 54}{space 4}-53.44612{col 67}{space 3} 27.61309
{txt}{space 7}2014  {c |}{col 14}{res}{space 2} -13.3506{col 26}{space 2} 20.65809{col 37}{space 1}   -0.65{col 46}{space 3}0.525{col 54}{space 4}-56.08512{col 67}{space 3} 29.38392
{txt}{space 7}2015  {c |}{col 14}{res}{space 2}-14.71734{col 26}{space 2} 20.93152{col 37}{space 1}   -0.70{col 46}{space 3}0.489{col 54}{space 4}-58.01748{col 67}{space 3} 28.58281
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}3  {c |}{col 14}{res}{space 2} 18.01605{col 26}{space 2} 6.315551{col 37}{space 1}    2.85{col 46}{space 3}0.009{col 54}{space 4}  4.95134{col 67}{space 3} 31.08077
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 2.708271{col 26}{space 2} 12.15393{col 37}{space 1}    0.22{col 46}{space 3}0.826{col 54}{space 4}-22.43405{col 67}{space 3} 27.85059
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 17.64785{col 26}{space 2} 11.18953{col 37}{space 1}    1.58{col 46}{space 3}0.128{col 54}{space 4}-5.499456{col 67}{space 3} 40.79515
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 2.359229{col 26}{space 2} 27.28433{col 37}{space 1}    0.09{col 46}{space 3}0.932{col 54}{space 4}-54.08271{col 67}{space 3} 58.80117
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 12.12711{col 26}{space 2} 6.063668{col 37}{space 1}    2.00{col 46}{space 3}0.057{col 54}{space 4}-.4165389{col 67}{space 3} 24.67077
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 13.81697{col 26}{space 2}  6.39226{col 37}{space 1}    2.16{col 46}{space 3}0.041{col 54}{space 4} .5935732{col 67}{space 3} 27.04037
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-7.655512{col 26}{space 2} 6.164154{col 37}{space 1}   -1.24{col 46}{space 3}0.227{col 54}{space 4}-20.40704{col 67}{space 3} 5.096012
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 10.57444{col 26}{space 2} 11.65587{col 37}{space 1}    0.91{col 46}{space 3}0.374{col 54}{space 4}-13.53756{col 67}{space 3} 34.68644
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-10.79598{col 26}{space 2} 22.42277{col 37}{space 1}   -0.48{col 46}{space 3}0.635{col 54}{space 4}-57.18101{col 67}{space 3} 35.58904
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 50.52391{col 26}{space 2} 23.82793{col 37}{space 1}    2.12{col 46}{space 3}0.045{col 54}{space 4} 1.232088{col 67}{space 3} 99.81573
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 23.92594{col 26}{space 2} 18.26578{col 37}{space 1}    1.31{col 46}{space 3}0.203{col 54}{space 4} -13.8597{col 67}{space 3} 61.71159
{txt}{space 9}15  {c |}{col 14}{res}{space 2}-14.01089{col 26}{space 2} 7.298711{col 37}{space 1}   -1.92{col 46}{space 3}0.067{col 54}{space 4}-29.10943{col 67}{space 3}  1.08764
{txt}{space 9}16  {c |}{col 14}{res}{space 2} 21.90138{col 26}{space 2} 13.44141{col 37}{space 1}    1.63{col 46}{space 3}0.117{col 54}{space 4}  -5.9043{col 67}{space 3} 49.70707
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 1.374589{col 26}{space 2} 10.05804{col 37}{space 1}    0.14{col 46}{space 3}0.892{col 54}{space 4}-19.43205{col 67}{space 3} 22.18123
{txt}{space 9}19  {c |}{col 14}{res}{space 2} 8.571326{col 26}{space 2} 15.31459{col 37}{space 1}    0.56{col 46}{space 3}0.581{col 54}{space 4}-23.10931{col 67}{space 3} 40.25196
{txt}{space 9}21  {c |}{col 14}{res}{space 2} 6.904215{col 26}{space 2} 9.039093{col 37}{space 1}    0.76{col 46}{space 3}0.453{col 54}{space 4}-11.79457{col 67}{space 3}   25.603
{txt}{space 9}22  {c |}{col 14}{res}{space 2} 17.80564{col 26}{space 2} 9.662372{col 37}{space 1}    1.84{col 46}{space 3}0.078{col 54}{space 4}-2.182494{col 67}{space 3} 37.79378
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 12.66959{col 26}{space 2} 7.592237{col 37}{space 1}    1.67{col 46}{space 3}0.109{col 54}{space 4}-3.036152{col 67}{space 3} 28.37533
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 5.484938{col 26}{space 2}  13.2611{col 37}{space 1}    0.41{col 46}{space 3}0.683{col 54}{space 4}-21.94774{col 67}{space 3} 32.91762
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .1372322{col 26}{space 2} 7.610205{col 37}{space 1}    0.02{col 46}{space 3}0.986{col 54}{space 4}-15.60568{col 67}{space 3} 15.88014
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 80.26871{col 26}{space 2} 35.55375{col 37}{space 1}    2.26{col 46}{space 3}0.034{col 54}{space 4}  6.72017{col 67}{space 3} 153.8173
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 7.938442{col 26}{space 2} 7.260301{col 37}{space 1}    1.09{col 46}{space 3}0.286{col 54}{space 4}-7.080636{col 67}{space 3} 22.95752
{txt}{space 9}28  {c |}{col 14}{res}{space 2} 9.841709{col 26}{space 2} 13.71497{col 37}{space 1}    0.72{col 46}{space 3}0.480{col 54}{space 4}-18.52986{col 67}{space 3} 38.21328
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} 137.2013{col 26}{space 2} 521.8158{col 37}{space 1}    0.26{col 46}{space 3}0.795{col 54}{space 4} -942.257{col 67}{space 3}  1216.66
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.67390516
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2014.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 2015.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 3.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 7.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 15.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 16.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 21.cid = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 22.cid = 0{p_end}
{p 0 7}{space 1}{text:(37)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(38)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(39)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(40)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(41)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(42)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 6 dropped
       Constraint 10 dropped
       Constraint 20 dropped
       Constraint 22 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 28 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped
       Constraint 35 dropped
       Constraint 36 dropped
       Constraint 37 dropped
       Constraint 38 dropped
       Constraint 39 dropped
       Constraint 41 dropped
       Constraint 42 dropped

       F( 23,    23) ={res}  109.64
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       456{col 27}-1928.546{col 38}-1647.639{col 49}    23{col 58} 3341.277{col 69} 3436.095
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 404) = {res}    60.07
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 404) = {res}    60.07
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod pop14 pop65 male lex infmo tobaco alcohc  i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}{help j_robustsingular:F(15, 16) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.7666
                                                {txt}Root MSE          =    {res} 10.308

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}  .147147{col 26}{space 2} .3297226{col 37}{space 1}    0.45{col 46}{space 3}0.661{col 54}{space 4}-.5518338{col 67}{space 3} .8461277
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-.6506447{col 26}{space 2} 3.664418{col 37}{space 1}   -0.18{col 46}{space 3}0.861{col 54}{space 4}-8.418863{col 67}{space 3} 7.117573
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .9543793{col 26}{space 2} 2.232608{col 37}{space 1}    0.43{col 46}{space 3}0.675{col 54}{space 4}-3.778539{col 67}{space 3} 5.687298
{txt}{space 8}male {c |}{col 14}{res}{space 2} 5.056351{col 26}{space 2} 11.92847{col 37}{space 1}    0.42{col 46}{space 3}0.677{col 54}{space 4}-20.23088{col 67}{space 3} 30.34358
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 3.067157{col 26}{space 2} 6.216991{col 37}{space 1}    0.49{col 46}{space 3}0.628{col 54}{space 4}-10.11228{col 67}{space 3} 16.24659
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 2.773173{col 26}{space 2}  .621581{col 37}{space 1}    4.46{col 46}{space 3}0.000{col 54}{space 4}  1.45548{col 67}{space 3} 4.090866
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2} .0011674{col 26}{space 2} .0056001{col 37}{space 1}    0.21{col 46}{space 3}0.837{col 54}{space 4}-.0107043{col 67}{space 3} .0130392
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2}-1.385934{col 26}{space 2}  2.80165{col 37}{space 1}   -0.49{col 46}{space 3}0.628{col 54}{space 4}-7.325167{col 67}{space 3} 4.553299
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1997  {c |}{col 14}{res}{space 2} -1.51965{col 26}{space 2} 2.952205{col 37}{space 1}   -0.51{col 46}{space 3}0.614{col 54}{space 4}-7.778045{col 67}{space 3} 4.738746
{txt}{space 7}1998  {c |}{col 14}{res}{space 2}-.9797501{col 26}{space 2} 6.865726{col 37}{space 1}   -0.14{col 46}{space 3}0.888{col 54}{space 4}-15.53444{col 67}{space 3} 13.57494
{txt}{space 7}1999  {c |}{col 14}{res}{space 2}  3.74411{col 26}{space 2} 9.854751{col 37}{space 1}    0.38{col 46}{space 3}0.709{col 54}{space 4}-17.14703{col 67}{space 3} 24.63525
{txt}{space 7}2000  {c |}{col 14}{res}{space 2} 4.344003{col 26}{space 2} 13.88763{col 37}{space 1}    0.31{col 46}{space 3}0.758{col 54}{space 4}-25.09646{col 67}{space 3} 33.78447
{txt}{space 7}2001  {c |}{col 14}{res}{space 2}  3.60412{col 26}{space 2} 16.18388{col 37}{space 1}    0.22{col 46}{space 3}0.827{col 54}{space 4}-30.70417{col 67}{space 3} 37.91241
{txt}{space 7}2002  {c |}{col 14}{res}{space 2} 4.225659{col 26}{space 2} 15.33009{col 37}{space 1}    0.28{col 46}{space 3}0.786{col 54}{space 4}-28.27269{col 67}{space 3} 36.72401
{txt}{space 7}2003  {c |}{col 14}{res}{space 2}  4.91349{col 26}{space 2} 16.59337{col 37}{space 1}    0.30{col 46}{space 3}0.771{col 54}{space 4}-30.26289{col 67}{space 3} 40.08987
{txt}{space 7}2004  {c |}{col 14}{res}{space 2} 6.735094{col 26}{space 2} 19.55734{col 37}{space 1}    0.34{col 46}{space 3}0.735{col 54}{space 4}-34.72461{col 67}{space 3} 48.19479
{txt}{space 7}2005  {c |}{col 14}{res}{space 2} 7.604034{col 26}{space 2} 20.88542{col 37}{space 1}    0.36{col 46}{space 3}0.721{col 54}{space 4}-36.67108{col 67}{space 3} 51.87915
{txt}{space 7}2006  {c |}{col 14}{res}{space 2} 6.243733{col 26}{space 2} 22.58116{col 37}{space 1}    0.28{col 46}{space 3}0.786{col 54}{space 4}-41.62619{col 67}{space 3} 54.11366
{txt}{space 7}2007  {c |}{col 14}{res}{space 2} 6.792467{col 26}{space 2} 24.89952{col 37}{space 1}    0.27{col 46}{space 3}0.789{col 54}{space 4}-45.99216{col 67}{space 3} 59.57709
{txt}{space 7}2008  {c |}{col 14}{res}{space 2} 4.281797{col 26}{space 2} 25.38589{col 37}{space 1}    0.17{col 46}{space 3}0.868{col 54}{space 4}-49.53388{col 67}{space 3} 58.09748
{txt}{space 7}2009  {c |}{col 14}{res}{space 2} 4.318635{col 26}{space 2} 25.70899{col 37}{space 1}    0.17{col 46}{space 3}0.869{col 54}{space 4}  -50.182{col 67}{space 3} 58.81927
{txt}{space 7}2010  {c |}{col 14}{res}{space 2} 2.643571{col 26}{space 2} 26.89506{col 37}{space 1}    0.10{col 46}{space 3}0.923{col 54}{space 4}-54.37142{col 67}{space 3} 59.65856
{txt}{space 7}2011  {c |}{col 14}{res}{space 2} 1.133481{col 26}{space 2}  27.8698{col 37}{space 1}    0.04{col 46}{space 3}0.968{col 54}{space 4}-57.94787{col 67}{space 3} 60.21483
{txt}{space 7}2012  {c |}{col 14}{res}{space 2}-.1988472{col 26}{space 2} 27.91998{col 37}{space 1}   -0.01{col 46}{space 3}0.994{col 54}{space 4}-59.38657{col 67}{space 3} 58.98888
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-3.267031{col 26}{space 2} 29.48169{col 37}{space 1}   -0.11{col 46}{space 3}0.913{col 54}{space 4}-65.76542{col 67}{space 3} 59.23136
{txt}{space 7}2014  {c |}{col 14}{res}{space 2}-4.395949{col 26}{space 2} 31.64929{col 37}{space 1}   -0.14{col 46}{space 3}0.891{col 54}{space 4}-71.48946{col 67}{space 3} 62.69756
{txt}{space 7}2015  {c |}{col 14}{res}{space 2}-6.301329{col 26}{space 2} 31.66433{col 37}{space 1}   -0.20{col 46}{space 3}0.845{col 54}{space 4}-73.42671{col 67}{space 3} 60.82405
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}6  {c |}{col 14}{res}{space 2}  7.35185{col 26}{space 2}  22.8435{col 37}{space 1}    0.32{col 46}{space 3}0.752{col 54}{space 4}-41.07421{col 67}{space 3} 55.77791
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .3502675{col 26}{space 2} 19.79774{col 37}{space 1}    0.02{col 46}{space 3}0.986{col 54}{space 4}-41.61908{col 67}{space 3} 42.31961
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 5.028687{col 26}{space 2} 33.33985{col 37}{space 1}    0.15{col 46}{space 3}0.882{col 54}{space 4}-65.64863{col 67}{space 3} 75.70601
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-4.302821{col 26}{space 2} 21.55576{col 37}{space 1}   -0.20{col 46}{space 3}0.844{col 54}{space 4}  -49.999{col 67}{space 3} 41.39336
{txt}{space 9}11  {c |}{col 14}{res}{space 2} -.673619{col 26}{space 2} 21.64441{col 37}{space 1}   -0.03{col 46}{space 3}0.976{col 54}{space 4}-46.55772{col 67}{space 3} 45.21048
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 3.575302{col 26}{space 2} 25.64851{col 37}{space 1}    0.14{col 46}{space 3}0.891{col 54}{space 4} -50.7971{col 67}{space 3} 57.94771
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-1.137712{col 26}{space 2} 43.98633{col 37}{space 1}   -0.03{col 46}{space 3}0.980{col 54}{space 4}-94.38457{col 67}{space 3} 92.10915
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-8.305125{col 26}{space 2} 35.73126{col 37}{space 1}   -0.23{col 46}{space 3}0.819{col 54}{space 4}-84.05201{col 67}{space 3} 67.44176
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-22.33739{col 26}{space 2} 24.86201{col 37}{space 1}   -0.90{col 46}{space 3}0.382{col 54}{space 4} -75.0425{col 67}{space 3} 30.36772
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-21.02092{col 26}{space 2} 30.96987{col 37}{space 1}   -0.68{col 46}{space 3}0.507{col 54}{space 4} -86.6741{col 67}{space 3} 44.63226
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-16.25432{col 26}{space 2} 30.48118{col 37}{space 1}   -0.53{col 46}{space 3}0.601{col 54}{space 4}-80.87154{col 67}{space 3} 48.36289
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-16.90766{col 26}{space 2} 29.45517{col 37}{space 1}   -0.57{col 46}{space 3}0.574{col 54}{space 4}-79.34983{col 67}{space 3}  45.5345
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-13.65853{col 26}{space 2} 31.62773{col 37}{space 1}   -0.43{col 46}{space 3}0.672{col 54}{space 4}-80.70632{col 67}{space 3} 53.38927
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 12.75381{col 26}{space 2} 49.18066{col 37}{space 1}    0.26{col 46}{space 3}0.799{col 54}{space 4}-91.50452{col 67}{space 3} 117.0121
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-6.616963{col 26}{space 2}  22.7826{col 37}{space 1}   -0.29{col 46}{space 3}0.775{col 54}{space 4}-54.91392{col 67}{space 3} 41.67999
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-16.63438{col 26}{space 2} 20.25345{col 37}{space 1}   -0.82{col 46}{space 3}0.424{col 54}{space 4}-59.56978{col 67}{space 3} 26.30103
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-401.9882{col 26}{space 2} 911.4924{col 37}{space 1}   -0.44{col 46}{space 3}0.665{col 54}{space 4}-2334.266{col 67}{space 3} 1530.289
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.72479358
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2014.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 2015.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 4 dropped
       Constraint 5 dropped
       Constraint 7 dropped
       Constraint 8 dropped
       Constraint 10 dropped
       Constraint 12 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 16 dropped
       Constraint 18 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 23 dropped
       Constraint 25 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 34 dropped

       F( 16,    16) ={res} 1094.82
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-1041.636{col 49}    16{col 58} 2115.272{col 69} 2173.655
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest 

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 237) = {res}    66.56
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod pop14 pop65 male lex infmo tobaco alcohc gdpg i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}{help j_robustsingular:F(15, 16) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.7684
                                                {txt}Root MSE          =    {res}  10.29

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2} .2520956{col 26}{space 2} .3500201{col 37}{space 1}    0.72{col 46}{space 3}0.482{col 54}{space 4}-.4899138{col 67}{space 3} .9941049
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-1.003526{col 26}{space 2} 3.652767{col 37}{space 1}   -0.27{col 46}{space 3}0.787{col 54}{space 4}-8.747047{col 67}{space 3} 6.739995
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} 1.104221{col 26}{space 2} 2.248814{col 37}{space 1}    0.49{col 46}{space 3}0.630{col 54}{space 4}-3.663051{col 67}{space 3} 5.871493
{txt}{space 8}male {c |}{col 14}{res}{space 2}  5.58969{col 26}{space 2} 12.11825{col 37}{space 1}    0.46{col 46}{space 3}0.651{col 54}{space 4}-20.09986{col 67}{space 3} 31.27924
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 2.988187{col 26}{space 2} 6.307652{col 37}{space 1}    0.47{col 46}{space 3}0.642{col 54}{space 4}-10.38344{col 67}{space 3} 16.35981
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 2.713759{col 26}{space 2} .6395451{col 37}{space 1}    4.24{col 46}{space 3}0.001{col 54}{space 4} 1.357984{col 67}{space 3} 4.069534
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2} .0013989{col 26}{space 2} .0055726{col 37}{space 1}    0.25{col 46}{space 3}0.805{col 54}{space 4}-.0104145{col 67}{space 3} .0132122
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2}-1.489707{col 26}{space 2} 2.876847{col 37}{space 1}   -0.52{col 46}{space 3}0.612{col 54}{space 4} -7.58835{col 67}{space 3} 4.608936
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2}-.3952631{col 26}{space 2} .5023014{col 37}{space 1}   -0.79{col 46}{space 3}0.443{col 54}{space 4}-1.460095{col 67}{space 3} .6695683
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1997  {c |}{col 14}{res}{space 2}  -1.4194{col 26}{space 2} 3.059005{col 37}{space 1}   -0.46{col 46}{space 3}0.649{col 54}{space 4}-7.904201{col 67}{space 3}   5.0654
{txt}{space 7}1998  {c |}{col 14}{res}{space 2}-1.157377{col 26}{space 2}  6.60672{col 37}{space 1}   -0.18{col 46}{space 3}0.863{col 54}{space 4}  -15.163{col 67}{space 3} 12.84824
{txt}{space 7}1999  {c |}{col 14}{res}{space 2}  3.18751{col 26}{space 2} 9.023219{col 37}{space 1}    0.35{col 46}{space 3}0.729{col 54}{space 4}-15.94086{col 67}{space 3} 22.31588
{txt}{space 7}2000  {c |}{col 14}{res}{space 2} 4.030688{col 26}{space 2} 13.55538{col 37}{space 1}    0.30{col 46}{space 3}0.770{col 54}{space 4}-24.70542{col 67}{space 3}  32.7668
{txt}{space 7}2001  {c |}{col 14}{res}{space 2}  2.09586{col 26}{space 2} 14.35341{col 37}{space 1}    0.15{col 46}{space 3}0.886{col 54}{space 4}-28.33201{col 67}{space 3} 32.52373
{txt}{space 7}2002  {c |}{col 14}{res}{space 2} 2.539574{col 26}{space 2} 13.79147{col 37}{space 1}    0.18{col 46}{space 3}0.856{col 54}{space 4}-26.69704{col 67}{space 3} 31.77619
{txt}{space 7}2003  {c |}{col 14}{res}{space 2} 3.109143{col 26}{space 2} 14.92094{col 37}{space 1}    0.21{col 46}{space 3}0.838{col 54}{space 4}-28.52184{col 67}{space 3} 34.74013
{txt}{space 7}2004  {c |}{col 14}{res}{space 2}   5.4052{col 26}{space 2} 18.33791{col 37}{space 1}    0.29{col 46}{space 3}0.772{col 54}{space 4}-33.46943{col 67}{space 3} 44.27983
{txt}{space 7}2005  {c |}{col 14}{res}{space 2} 5.747811{col 26}{space 2} 19.22955{col 37}{space 1}    0.30{col 46}{space 3}0.769{col 54}{space 4}-35.01702{col 67}{space 3} 46.51264
{txt}{space 7}2006  {c |}{col 14}{res}{space 2} 4.165708{col 26}{space 2}  20.6362{col 37}{space 1}    0.20{col 46}{space 3}0.843{col 54}{space 4}-39.58109{col 67}{space 3} 47.91251
{txt}{space 7}2007  {c |}{col 14}{res}{space 2} 4.189317{col 26}{space 2} 22.41309{col 37}{space 1}    0.19{col 46}{space 3}0.854{col 54}{space 4} -43.3243{col 67}{space 3} 51.70294
{txt}{space 7}2008  {c |}{col 14}{res}{space 2}  .081348{col 26}{space 2} 21.61501{col 37}{space 1}    0.00{col 46}{space 3}0.997{col 54}{space 4}-45.74043{col 67}{space 3} 45.90313
{txt}{space 7}2009  {c |}{col 14}{res}{space 2}-1.919591{col 26}{space 2}  20.1997{col 37}{space 1}   -0.10{col 46}{space 3}0.925{col 54}{space 4}-44.74104{col 67}{space 3} 40.90186
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}-1.449842{col 26}{space 2} 23.44299{col 37}{space 1}   -0.06{col 46}{space 3}0.951{col 54}{space 4}-51.14675{col 67}{space 3} 48.24707
{txt}{space 7}2011  {c |}{col 14}{res}{space 2}-3.159856{col 26}{space 2} 24.28269{col 37}{space 1}   -0.13{col 46}{space 3}0.898{col 54}{space 4}-54.63685{col 67}{space 3} 48.31714
{txt}{space 7}2012  {c |}{col 14}{res}{space 2} -5.36177{col 26}{space 2}  23.6025{col 37}{space 1}   -0.23{col 46}{space 3}0.823{col 54}{space 4}-55.39684{col 67}{space 3}  44.6733
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-8.222723{col 26}{space 2} 25.41165{col 37}{space 1}   -0.32{col 46}{space 3}0.750{col 54}{space 4}-62.09302{col 67}{space 3} 45.64757
{txt}{space 7}2014  {c |}{col 14}{res}{space 2}-8.996915{col 26}{space 2} 27.67387{col 37}{space 1}   -0.33{col 46}{space 3}0.749{col 54}{space 4} -67.6629{col 67}{space 3} 49.66906
{txt}{space 7}2015  {c |}{col 14}{res}{space 2}-10.59737{col 26}{space 2} 27.86411{col 37}{space 1}   -0.38{col 46}{space 3}0.709{col 54}{space 4}-69.66665{col 67}{space 3} 48.47191
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}6  {c |}{col 14}{res}{space 2} 5.480316{col 26}{space 2}  22.0245{col 37}{space 1}    0.25{col 46}{space 3}0.807{col 54}{space 4}-41.20954{col 67}{space 3} 52.17017
{txt}{space 10}8  {c |}{col 14}{res}{space 2}-.8605447{col 26}{space 2} 18.94533{col 37}{space 1}   -0.05{col 46}{space 3}0.964{col 54}{space 4}-41.02284{col 67}{space 3} 39.30176
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 3.968541{col 26}{space 2} 32.64849{col 37}{space 1}    0.12{col 46}{space 3}0.905{col 54}{space 4}-65.24316{col 67}{space 3} 73.18024
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-7.717388{col 26}{space 2} 19.03978{col 37}{space 1}   -0.41{col 46}{space 3}0.691{col 54}{space 4}-48.07991{col 67}{space 3} 32.64514
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-2.695927{col 26}{space 2} 20.56747{col 37}{space 1}   -0.13{col 46}{space 3}0.897{col 54}{space 4}-46.29702{col 67}{space 3} 40.90516
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 4.625611{col 26}{space 2} 25.17588{col 37}{space 1}    0.18{col 46}{space 3}0.857{col 54}{space 4}-48.74488{col 67}{space 3}  57.9961
{txt}{space 9}13  {c |}{col 14}{res}{space 2} .2802699{col 26}{space 2} 44.59483{col 37}{space 1}    0.01{col 46}{space 3}0.995{col 54}{space 4}-94.25656{col 67}{space 3} 94.81709
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-6.757688{col 26}{space 2} 36.92811{col 37}{space 1}   -0.18{col 46}{space 3}0.857{col 54}{space 4}-85.04179{col 67}{space 3} 71.52641
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-24.38512{col 26}{space 2} 23.43653{col 37}{space 1}   -1.04{col 46}{space 3}0.314{col 54}{space 4}-74.06835{col 67}{space 3}  25.2981
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-24.35351{col 26}{space 2} 29.49214{col 37}{space 1}   -0.83{col 46}{space 3}0.421{col 54}{space 4}-86.87407{col 67}{space 3} 38.16704
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-18.13197{col 26}{space 2} 28.59091{col 37}{space 1}   -0.63{col 46}{space 3}0.535{col 54}{space 4}-78.74199{col 67}{space 3} 42.47806
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-19.26354{col 26}{space 2} 27.92014{col 37}{space 1}   -0.69{col 46}{space 3}0.500{col 54}{space 4} -78.4516{col 67}{space 3} 39.92451
{txt}{space 9}25  {c |}{col 14}{res}{space 2} -15.8227{col 26}{space 2} 29.60075{col 37}{space 1}   -0.53{col 46}{space 3}0.600{col 54}{space 4}-78.57349{col 67}{space 3} 46.92808
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 18.63059{col 26}{space 2} 46.09171{col 37}{space 1}    0.40{col 46}{space 3}0.691{col 54}{space 4}-79.07947{col 67}{space 3} 116.3407
{txt}{space 9}27  {c |}{col 14}{res}{space 2} -7.00003{col 26}{space 2} 22.40735{col 37}{space 1}   -0.31{col 46}{space 3}0.759{col 54}{space 4}-54.50149{col 67}{space 3} 40.50143
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-17.33544{col 26}{space 2} 20.09926{col 37}{space 1}   -0.86{col 46}{space 3}0.401{col 54}{space 4}-59.94398{col 67}{space 3} 25.27309
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} -417.109{col 26}{space 2} 915.8226{col 37}{space 1}   -0.46{col 46}{space 3}0.655{col 54}{space 4}-2358.566{col 67}{space 3} 1524.348
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.72577694
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2014.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 2015.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 3 dropped
       Constraint 5 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 10 dropped
       Constraint 12 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 16 dropped
       Constraint 21 dropped
       Constraint 23 dropped
       Constraint 25 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 34 dropped
       Constraint 35 dropped

       F( 16,    16) ={res}  138.36
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-1040.535{col 49}    16{col 58} 2113.069{col 69} 2171.453
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 236) = {res}    62.15
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod pop14 pop65 male lex infmo cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       456
                                                {txt}{help j_robustsingular:F(5, 23) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.8876
                                                {txt}Root MSE          =    {res} 5.9319

{txt}{ralign 78:(Std. Err. adjusted for {res:24} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.9245619{col 26}{space 2} .7519841{col 37}{space 1}   -1.23{col 46}{space 3}0.231{col 54}{space 4} -2.48016{col 67}{space 3} .6310358
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-3.560873{col 26}{space 2}  2.22255{col 37}{space 1}   -1.60{col 46}{space 3}0.123{col 54}{space 4}-8.158568{col 67}{space 3} 1.036822
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .2183654{col 26}{space 2} 1.411441{col 37}{space 1}    0.15{col 46}{space 3}0.878{col 54}{space 4}-2.701423{col 67}{space 3} 3.138154
{txt}{space 8}male {c |}{col 14}{res}{space 2}-8.267536{col 26}{space 2} 10.08021{col 37}{space 1}   -0.82{col 46}{space 3}0.421{col 54}{space 4}-29.12004{col 67}{space 3} 12.58497
{txt}{space 9}lex {c |}{col 14}{res}{space 2} .2161933{col 26}{space 2} .9925001{col 37}{space 1}    0.22{col 46}{space 3}0.829{col 54}{space 4} -1.83695{col 67}{space 3} 2.269336
{txt}{space 7}infmo {c |}{col 14}{res}{space 2}-1.055592{col 26}{space 2} .5986173{col 37}{space 1}   -1.76{col 46}{space 3}0.091{col 54}{space 4}-2.293926{col 67}{space 3} .1827419
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}3  {c |}{col 14}{res}{space 2} 2630.025{col 26}{space 2} 783.9204{col 37}{space 1}    3.35{col 46}{space 3}0.003{col 54}{space 4} 1008.362{col 67}{space 3} 4251.688
{txt}{space 10}5  {c |}{col 14}{res}{space 2}-3941.198{col 26}{space 2} 629.8552{col 37}{space 1}   -6.26{col 46}{space 3}0.000{col 54}{space 4}-5244.153{col 67}{space 3}-2638.243
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 570.3561{col 26}{space 2} 915.5685{col 37}{space 1}    0.62{col 46}{space 3}0.539{col 54}{space 4}-1323.642{col 67}{space 3} 2464.354
{txt}{space 10}7  {c |}{col 14}{res}{space 2}-159.5525{col 26}{space 2} 853.7471{col 37}{space 1}   -0.19{col 46}{space 3}0.853{col 54}{space 4}-1925.663{col 67}{space 3} 1606.558
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 735.3004{col 26}{space 2} 419.0579{col 37}{space 1}    1.75{col 46}{space 3}0.093{col 54}{space 4}-131.5869{col 67}{space 3} 1602.188
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 485.2436{col 26}{space 2} 707.7676{col 37}{space 1}    0.69{col 46}{space 3}0.500{col 54}{space 4}-978.8852{col 67}{space 3} 1949.372
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-258.7096{col 26}{space 2} 463.3125{col 37}{space 1}   -0.56{col 46}{space 3}0.582{col 54}{space 4}-1217.145{col 67}{space 3} 699.7253
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 5153.162{col 26}{space 2} 1936.116{col 37}{space 1}    2.66{col 46}{space 3}0.014{col 54}{space 4}     1148{col 67}{space 3} 9158.324
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-2023.131{col 26}{space 2} 1273.779{col 37}{space 1}   -1.59{col 46}{space 3}0.126{col 54}{space 4}-4658.144{col 67}{space 3} 611.8818
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 3103.233{col 26}{space 2} 1140.676{col 37}{space 1}    2.72{col 46}{space 3}0.012{col 54}{space 4} 743.5645{col 67}{space 3} 5462.901
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-5218.699{col 26}{space 2} 1707.193{col 37}{space 1}   -3.06{col 46}{space 3}0.006{col 54}{space 4}-8750.297{col 67}{space 3}-1687.102
{txt}{space 9}15  {c |}{col 14}{res}{space 2} 650.3997{col 26}{space 2} 907.5569{col 37}{space 1}    0.72{col 46}{space 3}0.481{col 54}{space 4}-1227.025{col 67}{space 3} 2527.824
{txt}{space 9}16  {c |}{col 14}{res}{space 2} 1125.304{col 26}{space 2} 1791.988{col 37}{space 1}    0.63{col 46}{space 3}0.536{col 54}{space 4}-2581.706{col 67}{space 3} 4832.313
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-2085.779{col 26}{space 2} 501.5301{col 37}{space 1}   -4.16{col 46}{space 3}0.000{col 54}{space 4}-3123.273{col 67}{space 3}-1048.285
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-4803.073{col 26}{space 2} 2426.282{col 37}{space 1}   -1.98{col 46}{space 3}0.060{col 54}{space 4}-9822.221{col 67}{space 3} 216.0747
{txt}{space 9}21  {c |}{col 14}{res}{space 2} 3596.363{col 26}{space 2} 2144.189{col 37}{space 1}    1.68{col 46}{space 3}0.107{col 54}{space 4}-839.2299{col 67}{space 3} 8031.955
{txt}{space 9}22  {c |}{col 14}{res}{space 2} 3544.948{col 26}{space 2} 874.1799{col 37}{space 1}    4.06{col 46}{space 3}0.000{col 54}{space 4} 1736.569{col 67}{space 3} 5353.327
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 4061.919{col 26}{space 2} 648.6618{col 37}{space 1}    6.26{col 46}{space 3}0.000{col 54}{space 4} 2720.059{col 67}{space 3} 5403.778
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-885.8817{col 26}{space 2} 335.1316{col 37}{space 1}   -2.64{col 46}{space 3}0.015{col 54}{space 4}-1579.154{col 67}{space 3}-192.6092
{txt}{space 9}25  {c |}{col 14}{res}{space 2} 901.7158{col 26}{space 2} 827.2892{col 37}{space 1}    1.09{col 46}{space 3}0.287{col 54}{space 4}-809.6623{col 67}{space 3} 2613.094
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 15217.66{col 26}{space 2} 3296.549{col 37}{space 1}    4.62{col 46}{space 3}0.000{col 54}{space 4}  8398.23{col 67}{space 3} 22037.09
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-553.7891{col 26}{space 2} 472.6288{col 37}{space 1}   -1.17{col 46}{space 3}0.253{col 54}{space 4}-1531.496{col 67}{space 3}  423.918
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-1800.332{col 26}{space 2} 454.2598{col 37}{space 1}   -3.96{col 46}{space 3}0.001{col 54}{space 4} -2740.04{col 67}{space 3}-860.6238
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} 1.425677{col 26}{space 2}  1.19826{col 37}{space 1}    1.19{col 46}{space 3}0.246{col 54}{space 4}-1.053112{col 67}{space 3} 3.904466
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 3  {c |}{col 14}{res}{space 2}-1.294597{col 26}{space 2}  .394622{col 37}{space 1}   -3.28{col 46}{space 3}0.003{col 54}{space 4}-2.110935{col 67}{space 3} -.478259
{txt}{space 9} 5  {c |}{col 14}{res}{space 2} 1.952892{col 26}{space 2} .3192378{col 37}{space 1}    6.12{col 46}{space 3}0.000{col 54}{space 4} 1.292499{col 67}{space 3} 2.613286
{txt}{space 9} 6  {c |}{col 14}{res}{space 2}-.2707545{col 26}{space 2} .4616875{col 37}{space 1}   -0.59{col 46}{space 3}0.563{col 54}{space 4}-1.225828{col 67}{space 3} .6843189
{txt}{space 9} 7  {c |}{col 14}{res}{space 2} .0602502{col 26}{space 2} .4240647{col 37}{space 1}    0.14{col 46}{space 3}0.888{col 54}{space 4}-.8169944{col 67}{space 3} .9374948
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-.3625286{col 26}{space 2} .2083965{col 37}{space 1}   -1.74{col 46}{space 3}0.095{col 54}{space 4}-.7936296{col 67}{space 3} .0685724
{txt}{space 9} 9  {c |}{col 14}{res}{space 2}-.2314737{col 26}{space 2} .3543541{col 37}{space 1}   -0.65{col 46}{space 3}0.520{col 54}{space 4} -.964511{col 67}{space 3} .5015636
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .1313676{col 26}{space 2}  .230711{col 37}{space 1}    0.57{col 46}{space 3}0.575{col 54}{space 4}-.3458944{col 67}{space 3} .6086295
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-2.568615{col 26}{space 2} .9682346{col 37}{space 1}   -2.65{col 46}{space 3}0.014{col 54}{space 4}-4.571561{col 67}{space 3}-.5656692
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .9898059{col 26}{space 2} .6462073{col 37}{space 1}    1.53{col 46}{space 3}0.139{col 54}{space 4}-.3469757{col 67}{space 3} 2.326588
{txt}{space 9}13  {c |}{col 14}{res}{space 2} -1.53075{col 26}{space 2} .5604988{col 37}{space 1}   -2.73{col 46}{space 3}0.012{col 54}{space 4} -2.69023{col 67}{space 3}-.3712701
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 2.615404{col 26}{space 2}  .860565{col 37}{space 1}    3.04{col 46}{space 3}0.006{col 54}{space 4} .8351892{col 67}{space 3} 4.395618
{txt}{space 9}15  {c |}{col 14}{res}{space 2} -.329576{col 26}{space 2}  .454333{col 37}{space 1}   -0.73{col 46}{space 3}0.476{col 54}{space 4}-1.269435{col 67}{space 3} .6102835
{txt}{space 9}16  {c |}{col 14}{res}{space 2}-.5357346{col 26}{space 2}  .907815{col 37}{space 1}   -0.59{col 46}{space 3}0.561{col 54}{space 4}-2.413693{col 67}{space 3} 1.342224
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 1.046512{col 26}{space 2} .2498315{col 37}{space 1}    4.19{col 46}{space 3}0.000{col 54}{space 4} .5296959{col 67}{space 3} 1.563327
{txt}{space 9}19  {c |}{col 14}{res}{space 2}  2.41162{col 26}{space 2} 1.223609{col 37}{space 1}    1.97{col 46}{space 3}0.061{col 54}{space 4}-.1196079{col 67}{space 3} 4.942847
{txt}{space 9}21  {c |}{col 14}{res}{space 2}-1.801161{col 26}{space 2} 1.077551{col 37}{space 1}   -1.67{col 46}{space 3}0.108{col 54}{space 4}-4.030244{col 67}{space 3} .4279231
{txt}{space 9}22  {c |}{col 14}{res}{space 2}-1.766443{col 26}{space 2} .4362755{col 37}{space 1}   -4.05{col 46}{space 3}0.000{col 54}{space 4}-2.668948{col 67}{space 3}-.8639387
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-2.020623{col 26}{space 2} .3227414{col 37}{space 1}   -6.26{col 46}{space 3}0.000{col 54}{space 4}-2.688265{col 67}{space 3}-1.352982
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .4485493{col 26}{space 2} .1691955{col 37}{space 1}    2.65{col 46}{space 3}0.014{col 54}{space 4} .0985417{col 67}{space 3} .7985569
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-.4425493{col 26}{space 2} .4148055{col 37}{space 1}   -1.07{col 46}{space 3}0.297{col 54}{space 4} -1.30064{col 67}{space 3} .4155412
{txt}{space 9}26  {c |}{col 14}{res}{space 2} -7.53289{col 26}{space 2} 1.628601{col 37}{space 1}   -4.63{col 46}{space 3}0.000{col 54}{space 4}-10.90191{col 67}{space 3}-4.163872
{txt}{space 9}27  {c |}{col 14}{res}{space 2} .2799647{col 26}{space 2} .2363761{col 37}{space 1}    1.18{col 46}{space 3}0.248{col 54}{space 4}-.2090166{col 67}{space 3}  .768946
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .9085356{col 26}{space 2}  .228155{col 37}{space 1}    3.98{col 46}{space 3}0.001{col 54}{space 4}  .436561{col 67}{space 3}  1.38051
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-2280.761{col 26}{space 2}  2028.53{col 37}{space 1}   -1.12{col 46}{space 3}0.272{col 54}{space 4}-6477.095{col 67}{space 3} 1915.573
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.87282231
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}3.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 7.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 15.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 16.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 21.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 22.cid = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 3.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 7.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 15.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(37)}{space 1} 16.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(38)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(39)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(40)}{space 1} 21.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(41)}{space 1} 22.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(42)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(43)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(44)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(45)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(46)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(47)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 8 dropped
       Constraint 9 dropped
       Constraint 10 dropped
       Constraint 11 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 17 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped
       Constraint 34 dropped
       Constraint 35 dropped
       Constraint 36 dropped
       Constraint 37 dropped
       Constraint 38 dropped
       Constraint 39 dropped
       Constraint 40 dropped
       Constraint 41 dropped
       Constraint 42 dropped
       Constraint 43 dropped
       Constraint 44 dropped
       Constraint 45 dropped
       Constraint 46 dropped
       Constraint 47 dropped

       F(  6,    23) ={res}   12.91
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 3.cid#c.year  5.cid#c.year  ///
>          6.cid#c.year  7.cid#c.year  8.cid#c.year  9.cid#c.year  10.cid#c.year  ///
>                  11.cid#c.year  12.cid#c.year  13.cid#c.year  14.cid#c.year  15.cid#c.year  ///
>                  16.cid#c.year  17.cid#c.year  19.cid#c.year    ///
>                  21.cid#c.year  22.cid#c.year  23.cid#c.year  24.cid#c.year  25.cid#c.year  ///
>                  26.cid#c.year  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}3.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 7.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 15.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 16.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 21.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 22.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 8 dropped
       Constraint 9 dropped
       Constraint 10 dropped
       Constraint 11 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 17 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 23 dropped

       F(  6,    23) ={res}   13.08
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       456{col 27}-1928.546{col 38}-1430.135{col 49}     6{col 58}  2872.27{col 69} 2897.005
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 399) = {res}    54.96
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod pop14 pop65 male lex infmo tobaco alcohc cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}{help j_robustsingular:F(7, 16) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.8899
                                                {txt}Root MSE          =    {res} 7.0517

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-1.010168{col 26}{space 2} .9320597{col 37}{space 1}   -1.08{col 46}{space 3}0.295{col 54}{space 4}-2.986046{col 67}{space 3} .9657103
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-2.141638{col 26}{space 2} 4.279834{col 37}{space 1}   -0.50{col 46}{space 3}0.624{col 54}{space 4}-11.21448{col 67}{space 3} 6.931205
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}  1.02914{col 26}{space 2} 2.159702{col 37}{space 1}    0.48{col 46}{space 3}0.640{col 54}{space 4}-3.549224{col 67}{space 3} 5.607505
{txt}{space 8}male {c |}{col 14}{res}{space 2}-4.277423{col 26}{space 2} 12.67044{col 37}{space 1}   -0.34{col 46}{space 3}0.740{col 54}{space 4}-31.13756{col 67}{space 3} 22.58271
{txt}{space 9}lex {c |}{col 14}{res}{space 2}  1.78661{col 26}{space 2} 1.664426{col 37}{space 1}    1.07{col 46}{space 3}0.299{col 54}{space 4}-1.741816{col 67}{space 3} 5.315035
{txt}{space 7}infmo {c |}{col 14}{res}{space 2}-1.678553{col 26}{space 2}  .306997{col 37}{space 1}   -5.47{col 46}{space 3}0.000{col 54}{space 4}-2.329358{col 67}{space 3}-1.027748
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2} .0005787{col 26}{space 2} .0041497{col 37}{space 1}    0.14{col 46}{space 3}0.891{col 54}{space 4}-.0082184{col 67}{space 3} .0093757
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2} 2.218344{col 26}{space 2}  1.33389{col 37}{space 1}    1.66{col 46}{space 3}0.116{col 54}{space 4}-.6093761{col 67}{space 3} 5.046064
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}6  {c |}{col 14}{res}{space 2} 4135.199{col 26}{space 2} 2424.334{col 37}{space 1}    1.71{col 46}{space 3}0.107{col 54}{space 4}-1004.159{col 67}{space 3} 9274.557
{txt}{space 10}8  {c |}{col 14}{res}{space 2}  4851.53{col 26}{space 2} 372.2763{col 37}{space 1}   13.03{col 46}{space 3}0.000{col 54}{space 4} 4062.339{col 67}{space 3}  5640.72
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 3349.372{col 26}{space 2} 1616.976{col 37}{space 1}    2.07{col 46}{space 3}0.055{col 54}{space 4}-78.46466{col 67}{space 3} 6777.208
{txt}{space 9}10  {c |}{col 14}{res}{space 2}  2714.58{col 26}{space 2} 1009.309{col 37}{space 1}    2.69{col 46}{space 3}0.016{col 54}{space 4} 574.9396{col 67}{space 3} 4854.221
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 8568.019{col 26}{space 2} 1988.697{col 37}{space 1}    4.31{col 46}{space 3}0.001{col 54}{space 4}  4352.17{col 67}{space 3} 12783.87
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 1199.511{col 26}{space 2} 1255.843{col 37}{space 1}    0.96{col 46}{space 3}0.354{col 54}{space 4}-1462.758{col 67}{space 3}  3861.78
{txt}{space 9}13  {c |}{col 14}{res}{space 2}  6740.21{col 26}{space 2} 836.6751{col 37}{space 1}    8.06{col 46}{space 3}0.000{col 54}{space 4} 4966.539{col 67}{space 3} 8513.882
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-2374.766{col 26}{space 2} 3726.346{col 37}{space 1}   -0.64{col 46}{space 3}0.533{col 54}{space 4}-10274.27{col 67}{space 3} 5524.734
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 1233.874{col 26}{space 2} 2143.918{col 37}{space 1}    0.58{col 46}{space 3}0.573{col 54}{space 4}-3311.028{col 67}{space 3} 5778.777
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-1158.077{col 26}{space 2} 4185.478{col 37}{space 1}   -0.28{col 46}{space 3}0.786{col 54}{space 4}-10030.89{col 67}{space 3}  7714.74
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 4767.617{col 26}{space 2} 2792.254{col 37}{space 1}    1.71{col 46}{space 3}0.107{col 54}{space 4}-1151.696{col 67}{space 3} 10686.93
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 1352.916{col 26}{space 2} 1311.235{col 37}{space 1}    1.03{col 46}{space 3}0.318{col 54}{space 4}-1426.777{col 67}{space 3} 4132.609
{txt}{space 9}25  {c |}{col 14}{res}{space 2} 4035.431{col 26}{space 2}  1716.42{col 37}{space 1}    2.35{col 46}{space 3}0.032{col 54}{space 4} 396.7841{col 67}{space 3} 7674.078
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 20422.19{col 26}{space 2}  2347.36{col 37}{space 1}    8.70{col 46}{space 3}0.000{col 54}{space 4} 15446.01{col 67}{space 3} 25398.37
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 3016.011{col 26}{space 2} 1138.591{col 37}{space 1}    2.65{col 46}{space 3}0.018{col 54}{space 4} 602.3051{col 67}{space 3} 5429.717
{txt}{space 9}28  {c |}{col 14}{res}{space 2} 1538.741{col 26}{space 2} 1308.032{col 37}{space 1}    1.18{col 46}{space 3}0.257{col 54}{space 4}-1234.164{col 67}{space 3} 4311.646
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} 2.912046{col 26}{space 2} 1.268377{col 37}{space 1}    2.30{col 46}{space 3}0.036{col 54}{space 4} .2232074{col 67}{space 3} 5.600885
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 6  {c |}{col 14}{res}{space 2}-2.039741{col 26}{space 2} 1.226485{col 37}{space 1}   -1.66{col 46}{space 3}0.116{col 54}{space 4}-4.639773{col 67}{space 3} .5602909
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-2.403379{col 26}{space 2} .1977621{col 37}{space 1}  -12.15{col 46}{space 3}0.000{col 54}{space 4}-2.822616{col 67}{space 3}-1.984142
{txt}{space 9} 9  {c |}{col 14}{res}{space 2}-1.652785{col 26}{space 2}  .820137{col 37}{space 1}   -2.02{col 46}{space 3}0.061{col 54}{space 4}-3.391398{col 67}{space 3} .0858278
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-1.340842{col 26}{space 2} .5093964{col 37}{space 1}   -2.63{col 46}{space 3}0.018{col 54}{space 4}-2.420714{col 67}{space 3}-.2609698
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-4.260419{col 26}{space 2} .9912581{col 37}{space 1}   -4.30{col 46}{space 3}0.001{col 54}{space 4}-6.361792{col 67}{space 3}-2.159045
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-.5996649{col 26}{space 2} .6347446{col 37}{space 1}   -0.94{col 46}{space 3}0.359{col 54}{space 4}-1.945263{col 67}{space 3} .7459336
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-3.335912{col 26}{space 2} .4021657{col 37}{space 1}   -8.29{col 46}{space 3}0.000{col 54}{space 4}-4.188466{col 67}{space 3}-2.483359
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 1.203686{col 26}{space 2}  1.88317{col 37}{space 1}    0.64{col 46}{space 3}0.532{col 54}{space 4}-2.788456{col 67}{space 3} 5.195828
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-.5979029{col 26}{space 2} 1.087827{col 37}{space 1}   -0.55{col 46}{space 3}0.590{col 54}{space 4}-2.903993{col 67}{space 3} 1.708187
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .6070646{col 26}{space 2} 2.115876{col 37}{space 1}    0.29{col 46}{space 3}0.778{col 54}{space 4}-3.878393{col 67}{space 3} 5.092522
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-2.367677{col 26}{space 2} 1.395678{col 37}{space 1}   -1.70{col 46}{space 3}0.109{col 54}{space 4}-5.326381{col 67}{space 3} .5910277
{txt}{space 9}24  {c |}{col 14}{res}{space 2}  -.65454{col 26}{space 2} .6564155{col 37}{space 1}   -1.00{col 46}{space 3}0.334{col 54}{space 4}-2.046079{col 67}{space 3} .7369987
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-1.995085{col 26}{space 2} .8671272{col 37}{space 1}   -2.30{col 46}{space 3}0.035{col 54}{space 4}-3.833313{col 67}{space 3}-.1568578
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-10.10344{col 26}{space 2} 1.144381{col 37}{space 1}   -8.83{col 46}{space 3}0.000{col 54}{space 4}-12.52942{col 67}{space 3}-7.677461
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-1.489659{col 26}{space 2}  .579653{col 37}{space 1}   -2.57{col 46}{space 3}0.021{col 54}{space 4}-2.718469{col 67}{space 3}-.2608497
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-.7423788{col 26}{space 2} .6707241{col 37}{space 1}   -1.11{col 46}{space 3}0.285{col 54}{space 4} -2.16425{col 67}{space 3} .6794928
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-5658.421{col 26}{space 2}  2224.67{col 37}{space 1}   -2.54{col 46}{space 3}0.022{col 54}{space 4}-10374.51{col 67}{space 3}-942.3305
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.87121505
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 16 dropped
       Constraint 17 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped

       F(  8,    16) ={res}22349.85
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 6.cid#c.year  8.cid#c.year  9.cid#c.year  10.cid#c.year  ///
>                  11.cid#c.year  12.cid#c.year  13.cid#c.year  14.cid#c.year  ///
>                  17.cid#c.year  19.cid#c.year    ///
>                   23.cid#c.year  24.cid#c.year  25.cid#c.year  ///
>                  26.cid#c.year  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 16 dropped

       F(  8,    16) ={res}22345.40
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-934.9826{col 49}     8{col 58} 1885.965{col 69} 1915.157
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 239) = {res}    39.63
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod pop14 pop65 male lex infmo tobaco alcohc gdpg cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}{help j_robustsingular:F(8, 16) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.8900
                                                {txt}Root MSE          =    {res} 7.0612

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.9577586{col 26}{space 2}  .974332{col 37}{space 1}   -0.98{col 46}{space 3}0.340{col 54}{space 4} -3.02325{col 67}{space 3} 1.107733
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-2.228721{col 26}{space 2}  4.15864{col 37}{space 1}   -0.54{col 46}{space 3}0.599{col 54}{space 4}-11.04464{col 67}{space 3} 6.587203
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} 1.254461{col 26}{space 2}  2.04827{col 37}{space 1}    0.61{col 46}{space 3}0.549{col 54}{space 4}-3.087678{col 67}{space 3}   5.5966
{txt}{space 8}male {c |}{col 14}{res}{space 2}-4.335675{col 26}{space 2} 12.67326{col 37}{space 1}   -0.34{col 46}{space 3}0.737{col 54}{space 4}-31.20179{col 67}{space 3} 22.53044
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 1.716194{col 26}{space 2} 1.541176{col 37}{space 1}    1.11{col 46}{space 3}0.282{col 54}{space 4}-1.550954{col 67}{space 3} 4.983341
{txt}{space 7}infmo {c |}{col 14}{res}{space 2}-1.628019{col 26}{space 2} .2991905{col 37}{space 1}   -5.44{col 46}{space 3}0.000{col 54}{space 4}-2.262274{col 67}{space 3}-.9937632
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2} .0004894{col 26}{space 2} .0041734{col 37}{space 1}    0.12{col 46}{space 3}0.908{col 54}{space 4}-.0083579{col 67}{space 3} .0093366
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2} 2.331984{col 26}{space 2} 1.499463{col 37}{space 1}    1.56{col 46}{space 3}0.139{col 54}{space 4}-.8467347{col 67}{space 3} 5.510704
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2}-.0985583{col 26}{space 2} .2402195{col 37}{space 1}   -0.41{col 46}{space 3}0.687{col 54}{space 4}-.6078008{col 67}{space 3} .4106842
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}6  {c |}{col 14}{res}{space 2} 4131.653{col 26}{space 2}  2418.66{col 37}{space 1}    1.71{col 46}{space 3}0.107{col 54}{space 4} -995.677{col 67}{space 3} 9258.983
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 4987.403{col 26}{space 2} 531.5299{col 37}{space 1}    9.38{col 46}{space 3}0.000{col 54}{space 4}  3860.61{col 67}{space 3} 6114.196
{txt}{space 10}9  {c |}{col 14}{res}{space 2}   3346.4{col 26}{space 2} 1613.472{col 37}{space 1}    2.07{col 46}{space 3}0.055{col 54}{space 4}-74.00855{col 67}{space 3} 6766.808
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 2815.756{col 26}{space 2} 928.5505{col 37}{space 1}    3.03{col 46}{space 3}0.008{col 54}{space 4} 847.3168{col 67}{space 3} 4784.195
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 8638.585{col 26}{space 2} 1919.193{col 37}{space 1}    4.50{col 46}{space 3}0.000{col 54}{space 4} 4570.077{col 67}{space 3} 12707.09
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 1183.046{col 26}{space 2} 1271.348{col 37}{space 1}    0.93{col 46}{space 3}0.366{col 54}{space 4}-1512.091{col 67}{space 3} 3878.183
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 6765.021{col 26}{space 2} 824.8169{col 37}{space 1}    8.20{col 46}{space 3}0.000{col 54}{space 4} 5016.487{col 67}{space 3} 8513.555
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-2313.732{col 26}{space 2}  3765.87{col 37}{space 1}   -0.61{col 46}{space 3}0.548{col 54}{space 4}-10297.02{col 67}{space 3} 5669.556
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 1319.758{col 26}{space 2} 2207.414{col 37}{space 1}    0.60{col 46}{space 3}0.558{col 54}{space 4}-3359.751{col 67}{space 3} 5999.267
{txt}{space 9}19  {c |}{col 14}{res}{space 2} -1026.78{col 26}{space 2} 4295.052{col 37}{space 1}   -0.24{col 46}{space 3}0.814{col 54}{space 4}-10131.88{col 67}{space 3} 8078.324
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 4789.085{col 26}{space 2} 2810.006{col 37}{space 1}    1.70{col 46}{space 3}0.108{col 54}{space 4}-1167.861{col 67}{space 3} 10746.03
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 1289.984{col 26}{space 2} 1269.363{col 37}{space 1}    1.02{col 46}{space 3}0.325{col 54}{space 4}-1400.946{col 67}{space 3} 3980.914
{txt}{space 9}25  {c |}{col 14}{res}{space 2} 4235.878{col 26}{space 2} 1785.635{col 37}{space 1}    2.37{col 46}{space 3}0.031{col 54}{space 4} 450.5019{col 67}{space 3} 8021.255
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 20208.27{col 26}{space 2} 2486.776{col 37}{space 1}    8.13{col 46}{space 3}0.000{col 54}{space 4} 14936.54{col 67}{space 3}    25480
{txt}{space 9}27  {c |}{col 14}{res}{space 2}  2967.24{col 26}{space 2} 1087.393{col 37}{space 1}    2.73{col 46}{space 3}0.015{col 54}{space 4} 662.0704{col 67}{space 3} 5272.409
{txt}{space 9}28  {c |}{col 14}{res}{space 2} 1638.937{col 26}{space 2} 1323.925{col 37}{space 1}    1.24{col 46}{space 3}0.234{col 54}{space 4}-1167.659{col 67}{space 3} 4445.532
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} 2.806611{col 26}{space 2} 1.367389{col 37}{space 1}    2.05{col 46}{space 3}0.057{col 54}{space 4}-.0921235{col 67}{space 3} 5.705346
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 6  {c |}{col 14}{res}{space 2}-2.038533{col 26}{space 2}  1.22429{col 37}{space 1}   -1.67{col 46}{space 3}0.115{col 54}{space 4}-4.633912{col 67}{space 3} .5568447
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-2.471484{col 26}{space 2}  .277967{col 37}{space 1}   -8.89{col 46}{space 3}0.000{col 54}{space 4}-3.060748{col 67}{space 3} -1.88222
{txt}{space 9} 9  {c |}{col 14}{res}{space 2}-1.652021{col 26}{space 2} .8187268{col 37}{space 1}   -2.02{col 46}{space 3}0.061{col 54}{space 4}-3.387644{col 67}{space 3} .0836022
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-1.392355{col 26}{space 2}  .469798{col 37}{space 1}   -2.96{col 46}{space 3}0.009{col 54}{space 4}-2.388282{col 67}{space 3}-.3964281
{txt}{space 9}11  {c |}{col 14}{res}{space 2} -4.29583{col 26}{space 2} .9563235{col 37}{space 1}   -4.49{col 46}{space 3}0.000{col 54}{space 4}-6.323145{col 67}{space 3}-2.268515
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-.5917574{col 26}{space 2} .6423001{col 37}{space 1}   -0.92{col 46}{space 3}0.371{col 54}{space 4}-1.953373{col 67}{space 3} .7698579
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-3.347358{col 26}{space 2} .3971403{col 37}{space 1}   -8.43{col 46}{space 3}0.000{col 54}{space 4}-4.189258{col 67}{space 3}-2.505458
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 1.173465{col 26}{space 2} 1.903197{col 37}{space 1}    0.62{col 46}{space 3}0.546{col 54}{space 4}-2.861132{col 67}{space 3} 5.208062
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-.6410713{col 26}{space 2}  1.12024{col 37}{space 1}   -0.57{col 46}{space 3}0.575{col 54}{space 4}-3.015874{col 67}{space 3} 1.733731
{txt}{space 9}19  {c |}{col 14}{res}{space 2}  .541158{col 26}{space 2} 2.171313{col 37}{space 1}    0.25{col 46}{space 3}0.806{col 54}{space 4} -4.06182{col 67}{space 3} 5.144136
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-2.378742{col 26}{space 2} 1.404752{col 37}{space 1}   -1.69{col 46}{space 3}0.110{col 54}{space 4}-5.356684{col 67}{space 3} .5991997
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-.6233291{col 26}{space 2} .6346815{col 37}{space 1}   -0.98{col 46}{space 3}0.341{col 54}{space 4}-1.968794{col 67}{space 3} .7221355
{txt}{space 9}25  {c |}{col 14}{res}{space 2}  -2.0954{col 26}{space 2} .9031774{col 37}{space 1}   -2.32{col 46}{space 3}0.034{col 54}{space 4}-4.010051{col 67}{space 3}-.1807496
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-9.995213{col 26}{space 2} 1.214538{col 37}{space 1}   -8.23{col 46}{space 3}0.000{col 54}{space 4}-12.56992{col 67}{space 3}-7.420508
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-1.465642{col 26}{space 2} .5541331{col 37}{space 1}   -2.64{col 46}{space 3}0.018{col 54}{space 4}-2.640351{col 67}{space 3}-.2909322
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-.7924336{col 26}{space 2} .6802148{col 37}{space 1}   -1.16{col 46}{space 3}0.261{col 54}{space 4}-2.234424{col 67}{space 3} .6495573
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-5443.186{col 26}{space 2} 2355.757{col 37}{space 1}   -2.31{col 46}{space 3}0.035{col 54}{space 4}-10437.17{col 67}{space 3}-449.2042
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.870869
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 13 dropped
       Constraint 16 dropped
       Constraint 17 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped

       F(  9,    16) ={res}27116.46
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 6.cid#c.year  8.cid#c.year  9.cid#c.year  10.cid#c.year  ///
>                  11.cid#c.year  12.cid#c.year  13.cid#c.year  14.cid#c.year  ///
>                  17.cid#c.year  19.cid#c.year    ///
>                   23.cid#c.year  24.cid#c.year  25.cid#c.year  ///
>                  26.cid#c.year  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 13 dropped
       Constraint 16 dropped

       F(  9,    16) ={res}27129.61
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-934.7757{col 49}     9{col 58} 1887.551{col 69} 1920.392
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 238) = {res}    38.39
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. 
. ///////////////////////////////////////////////
> ///////////////////  TABLE 3 PLUS k //////////////////
> ///////////////////////////////////////////////
> 
. reg phpnh prod k pop14 pop65 male lex infmo, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       456
                                                {txt}F(7, 23)          =  {res}    27.44
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4387
                                                {txt}Root MSE          =    {res} 12.559

{txt}{ralign 78:(Std. Err. adjusted for {res:24} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.1125519{col 26}{space 2} .1085086{col 37}{space 1}   -1.04{col 46}{space 3}0.310{col 54}{space 4} -.337019{col 67}{space 3} .1119152
{txt}{space 11}k {c |}{col 14}{res}{space 2} .7338863{col 26}{space 2}  .667943{col 37}{space 1}    1.10{col 46}{space 3}0.283{col 54}{space 4}-.6478591{col 67}{space 3} 2.115632
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-1.040564{col 26}{space 2} 1.112311{col 37}{space 1}   -0.94{col 46}{space 3}0.359{col 54}{space 4}-3.341555{col 67}{space 3} 1.260428
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}-.0204014{col 26}{space 2} 1.158158{col 37}{space 1}   -0.02{col 46}{space 3}0.986{col 54}{space 4}-2.416234{col 67}{space 3} 2.375431
{txt}{space 8}male {c |}{col 14}{res}{space 2} 1.735075{col 26}{space 2} 2.691556{col 37}{space 1}    0.64{col 46}{space 3}0.526{col 54}{space 4}-3.832832{col 67}{space 3} 7.302982
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 2.502744{col 26}{space 2} 1.244018{col 37}{space 1}    2.01{col 46}{space 3}0.056{col 54}{space 4}-.0707029{col 67}{space 3}  5.07619
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 3.276677{col 26}{space 2} .4572185{col 37}{space 1}    7.17{col 46}{space 3}0.000{col 54}{space 4} 2.330848{col 67}{space 3} 4.222505
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-241.6303{col 26}{space 2} 108.6897{col 37}{space 1}   -2.22{col 46}{space 3}0.036{col 54}{space 4}-466.4722{col 67}{space 3}-16.78843
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.42993102
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       456{col 27}-1928.546{col 38}-1796.876{col 49}     8{col 58} 3609.752{col 69} 3642.732
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 445) = {res}    32.99
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod k pop14 pop65 male lex infmo tobaco alcohc, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}F(9, 16)          =  {res}   169.84
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6024
                                                {txt}Root MSE          =    {res} 12.593

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.2978592{col 26}{space 2}  .112824{col 37}{space 1}   -2.64{col 46}{space 3}0.018{col 54}{space 4}-.5370354{col 67}{space 3} -.058683
{txt}{space 11}k {c |}{col 14}{res}{space 2}-.0622918{col 26}{space 2} .6793466{col 37}{space 1}   -0.09{col 46}{space 3}0.928{col 54}{space 4}-1.502442{col 67}{space 3} 1.377859
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-.9087723{col 26}{space 2} 1.329463{col 37}{space 1}   -0.68{col 46}{space 3}0.504{col 54}{space 4}-3.727109{col 67}{space 3} 1.909564
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .6880021{col 26}{space 2} 1.422942{col 37}{space 1}    0.48{col 46}{space 3}0.635{col 54}{space 4}-2.328501{col 67}{space 3} 3.704505
{txt}{space 8}male {c |}{col 14}{res}{space 2} 5.631869{col 26}{space 2} 6.206826{col 37}{space 1}    0.91{col 46}{space 3}0.378{col 54}{space 4}-7.526014{col 67}{space 3} 18.78975
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 3.854337{col 26}{space 2} 1.492054{col 37}{space 1}    2.58{col 46}{space 3}0.020{col 54}{space 4} .6913246{col 67}{space 3}  7.01735
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 3.626622{col 26}{space 2} .5055681{col 37}{space 1}    7.17{col 46}{space 3}0.000{col 54}{space 4} 2.554866{col 67}{space 3} 4.698379
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2}-.0032491{col 26}{space 2} .0037448{col 37}{space 1}   -0.87{col 46}{space 3}0.398{col 54}{space 4}-.0111878{col 67}{space 3} .0046895
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2}-.2155143{col 26}{space 2}  1.02697{col 37}{space 1}   -0.21{col 46}{space 3}0.836{col 54}{space 4}-2.392594{col 67}{space 3} 1.961565
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-469.1827{col 26}{space 2} 231.1338{col 37}{space 1}   -2.03{col 46}{space 3}0.059{col 54}{space 4}-959.1645{col 67}{space 3} 20.79907
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.58930359
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-1117.297{col 49}    10{col 58} 2254.593{col 69} 2291.083
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 271) = {res}    27.29
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod k pop14 pop65 male lex infmo tobaco alcohc gdpg, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}F(10, 16)         =  {res}   227.86
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6061
                                                {txt}Root MSE          =    {res} 12.556

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2} -.289791{col 26}{space 2} .1174096{col 37}{space 1}   -2.47{col 46}{space 3}0.025{col 54}{space 4}-.5386882{col 67}{space 3}-.0408938
{txt}{space 11}k {c |}{col 14}{res}{space 2} .0196326{col 26}{space 2}  .657538{col 37}{space 1}    0.03{col 46}{space 3}0.977{col 54}{space 4}-1.374286{col 67}{space 3} 1.413551
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-.8055776{col 26}{space 2} 1.291998{col 37}{space 1}   -0.62{col 46}{space 3}0.542{col 54}{space 4}-3.544491{col 67}{space 3} 1.933336
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .6165581{col 26}{space 2} 1.379389{col 37}{space 1}    0.45{col 46}{space 3}0.661{col 54}{space 4}-2.307615{col 67}{space 3} 3.540731
{txt}{space 8}male {c |}{col 14}{res}{space 2} 5.659756{col 26}{space 2} 5.985878{col 37}{space 1}    0.95{col 46}{space 3}0.358{col 54}{space 4}-7.029738{col 67}{space 3} 18.34925
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 3.710773{col 26}{space 2} 1.471405{col 37}{space 1}    2.52{col 46}{space 3}0.023{col 54}{space 4} .5915345{col 67}{space 3} 6.830011
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 3.577551{col 26}{space 2} .5133994{col 37}{space 1}    6.97{col 46}{space 3}0.000{col 54}{space 4} 2.489193{col 67}{space 3} 4.665909
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2}-.0030662{col 26}{space 2} .0035873{col 37}{space 1}   -0.85{col 46}{space 3}0.405{col 54}{space 4}-.0106709{col 67}{space 3} .0045385
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2}-.1761806{col 26}{space 2} 1.007929{col 37}{space 1}   -0.17{col 46}{space 3}0.863{col 54}{space 4}-2.312894{col 67}{space 3} 1.960533
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2}-.3850682{col 26}{space 2} .2913208{col 37}{space 1}   -1.32{col 46}{space 3}0.205{col 54}{space 4}-1.002641{col 67}{space 3} .2325042
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-467.3974{col 26}{space 2} 226.1921{col 37}{space 1}   -2.07{col 46}{space 3}0.055{col 54}{space 4}-946.9033{col 67}{space 3} 12.10858
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.59169598
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-1115.948{col 49}    11{col 58} 2253.895{col 69} 2294.034
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 270) = {res}    27.62
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod k pop14 pop65 male lex infmo  i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       456
                                                {txt}{help j_robustsingular:F(22, 23) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.7086
                                                {txt}Root MSE          =    {res} 9.5059

{txt}{ralign 78:(Std. Err. adjusted for {res:24} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2} .2611423{col 26}{space 2} .3830586{col 37}{space 1}    0.68{col 46}{space 3}0.502{col 54}{space 4}-.5312747{col 67}{space 3} 1.053559
{txt}{space 11}k {c |}{col 14}{res}{space 2}-.3472565{col 26}{space 2} 2.316664{col 37}{space 1}   -0.15{col 46}{space 3}0.882{col 54}{space 4}-5.139641{col 67}{space 3} 4.445128
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-3.662451{col 26}{space 2}  1.93846{col 37}{space 1}   -1.89{col 46}{space 3}0.072{col 54}{space 4}-7.672461{col 67}{space 3}  .347558
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} 2.604549{col 26}{space 2} 2.223935{col 37}{space 1}    1.17{col 46}{space 3}0.254{col 54}{space 4}-1.996011{col 67}{space 3}  7.20511
{txt}{space 8}male {c |}{col 14}{res}{space 2}-2.334286{col 26}{space 2}  9.10327{col 37}{space 1}   -0.26{col 46}{space 3}0.800{col 54}{space 4}-21.16584{col 67}{space 3} 16.49726
{txt}{space 9}lex {c |}{col 14}{res}{space 2}  .951545{col 26}{space 2} 2.819795{col 37}{space 1}    0.34{col 46}{space 3}0.739{col 54}{space 4}-4.881645{col 67}{space 3} 6.784735
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 2.687412{col 26}{space 2} .3262367{col 37}{space 1}    8.24{col 46}{space 3}0.000{col 54}{space 4}  2.01254{col 67}{space 3} 3.362284
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1997  {c |}{col 14}{res}{space 2}-1.676699{col 26}{space 2} 2.433573{col 37}{space 1}   -0.69{col 46}{space 3}0.498{col 54}{space 4}-6.710927{col 67}{space 3} 3.357529
{txt}{space 7}1998  {c |}{col 14}{res}{space 2}-1.605078{col 26}{space 2}  4.22625{col 37}{space 1}   -0.38{col 46}{space 3}0.708{col 54}{space 4}-10.34774{col 67}{space 3} 7.137586
{txt}{space 7}1999  {c |}{col 14}{res}{space 2} 1.066132{col 26}{space 2} 6.068056{col 37}{space 1}    0.18{col 46}{space 3}0.862{col 54}{space 4} -11.4866{col 67}{space 3} 13.61886
{txt}{space 7}2000  {c |}{col 14}{res}{space 2} .4227669{col 26}{space 2} 9.321328{col 37}{space 1}    0.05{col 46}{space 3}0.964{col 54}{space 4}-18.85987{col 67}{space 3}  19.7054
{txt}{space 7}2001  {c |}{col 14}{res}{space 2}-.6884904{col 26}{space 2} 10.99806{col 37}{space 1}   -0.06{col 46}{space 3}0.951{col 54}{space 4}-23.43971{col 67}{space 3} 22.06273
{txt}{space 7}2002  {c |}{col 14}{res}{space 2}-.6110893{col 26}{space 2} 10.63954{col 37}{space 1}   -0.06{col 46}{space 3}0.955{col 54}{space 4}-22.62065{col 67}{space 3} 21.39847
{txt}{space 7}2003  {c |}{col 14}{res}{space 2}-.1730299{col 26}{space 2}  9.63178{col 37}{space 1}   -0.02{col 46}{space 3}0.986{col 54}{space 4}-20.09788{col 67}{space 3} 19.75182
{txt}{space 7}2004  {c |}{col 14}{res}{space 2}   .55912{col 26}{space 2} 10.93403{col 37}{space 1}    0.05{col 46}{space 3}0.960{col 54}{space 4}-22.05964{col 67}{space 3} 23.17788
{txt}{space 7}2005  {c |}{col 14}{res}{space 2} .2261101{col 26}{space 2} 11.64607{col 37}{space 1}    0.02{col 46}{space 3}0.985{col 54}{space 4}-23.86562{col 67}{space 3} 24.31784
{txt}{space 7}2006  {c |}{col 14}{res}{space 2}-1.898808{col 26}{space 2} 13.09141{col 37}{space 1}   -0.15{col 46}{space 3}0.886{col 54}{space 4}-28.98046{col 67}{space 3} 25.18285
{txt}{space 7}2007  {c |}{col 14}{res}{space 2}-2.023018{col 26}{space 2} 14.44857{col 37}{space 1}   -0.14{col 46}{space 3}0.890{col 54}{space 4}-31.91217{col 67}{space 3} 27.86614
{txt}{space 7}2008  {c |}{col 14}{res}{space 2}-5.019388{col 26}{space 2} 15.38895{col 37}{space 1}   -0.33{col 46}{space 3}0.747{col 54}{space 4}-36.85385{col 67}{space 3} 26.81507
{txt}{space 7}2009  {c |}{col 14}{res}{space 2}-5.380611{col 26}{space 2} 16.00069{col 37}{space 1}   -0.34{col 46}{space 3}0.740{col 54}{space 4}-38.48056{col 67}{space 3} 27.71933
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}-7.607528{col 26}{space 2} 17.11779{col 37}{space 1}   -0.44{col 46}{space 3}0.661{col 54}{space 4}-43.01837{col 67}{space 3} 27.80331
{txt}{space 7}2011  {c |}{col 14}{res}{space 2}-9.484958{col 26}{space 2} 17.97102{col 37}{space 1}   -0.53{col 46}{space 3}0.603{col 54}{space 4}-46.66084{col 67}{space 3} 27.69093
{txt}{space 7}2012  {c |}{col 14}{res}{space 2} -11.8226{col 26}{space 2} 18.78934{col 37}{space 1}   -0.63{col 46}{space 3}0.535{col 54}{space 4}-50.69132{col 67}{space 3} 27.04611
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-14.13852{col 26}{space 2} 19.78743{col 37}{space 1}   -0.71{col 46}{space 3}0.482{col 54}{space 4}-55.07194{col 67}{space 3}  26.7949
{txt}{space 7}2014  {c |}{col 14}{res}{space 2}-14.60569{col 26}{space 2} 20.76458{col 37}{space 1}   -0.70{col 46}{space 3}0.489{col 54}{space 4}-57.56049{col 67}{space 3} 28.34911
{txt}{space 7}2015  {c |}{col 14}{res}{space 2}-16.52294{col 26}{space 2} 22.29446{col 37}{space 1}   -0.74{col 46}{space 3}0.466{col 54}{space 4}-62.64254{col 67}{space 3} 29.59666
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}3  {c |}{col 14}{res}{space 2} 18.51709{col 26}{space 2} 6.488897{col 37}{space 1}    2.85{col 46}{space 3}0.009{col 54}{space 4} 5.093788{col 67}{space 3}  31.9404
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 1.775455{col 26}{space 2}  13.5019{col 37}{space 1}    0.13{col 46}{space 3}0.897{col 54}{space 4}-26.15536{col 67}{space 3} 29.70627
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 18.87349{col 26}{space 2} 13.19852{col 37}{space 1}    1.43{col 46}{space 3}0.166{col 54}{space 4}-8.429735{col 67}{space 3} 46.17672
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 3.029554{col 26}{space 2} 25.84274{col 37}{space 1}    0.12{col 46}{space 3}0.908{col 54}{space 4}-50.43022{col 67}{space 3} 56.48933
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 13.17891{col 26}{space 2} 8.860818{col 37}{space 1}    1.49{col 46}{space 3}0.151{col 54}{space 4}-5.151087{col 67}{space 3} 31.50891
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 14.23354{col 26}{space 2} 5.754929{col 37}{space 1}    2.47{col 46}{space 3}0.021{col 54}{space 4} 2.328564{col 67}{space 3} 26.13852
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-8.221563{col 26}{space 2} 5.937542{col 37}{space 1}   -1.38{col 46}{space 3}0.179{col 54}{space 4} -20.5043{col 67}{space 3} 4.061178
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 9.840285{col 26}{space 2} 10.21029{col 37}{space 1}    0.96{col 46}{space 3}0.345{col 54}{space 4} -11.2813{col 67}{space 3} 30.96187
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-11.94366{col 26}{space 2} 25.62431{col 37}{space 1}   -0.47{col 46}{space 3}0.646{col 54}{space 4}-64.95157{col 67}{space 3} 41.06426
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 51.98262{col 26}{space 2} 26.19614{col 37}{space 1}    1.98{col 46}{space 3}0.059{col 54}{space 4}-2.208222{col 67}{space 3} 106.1735
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 25.69001{col 26}{space 2} 19.45051{col 37}{space 1}    1.32{col 46}{space 3}0.200{col 54}{space 4}-14.54644{col 67}{space 3} 65.92646
{txt}{space 9}15  {c |}{col 14}{res}{space 2}-14.23707{col 26}{space 2} 6.728716{col 37}{space 1}   -2.12{col 46}{space 3}0.045{col 54}{space 4}-28.15647{col 67}{space 3} -.317657
{txt}{space 9}16  {c |}{col 14}{res}{space 2}  23.6373{col 26}{space 2} 15.72658{col 37}{space 1}    1.50{col 46}{space 3}0.146{col 54}{space 4} -8.89561{col 67}{space 3}  56.1702
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 1.947052{col 26}{space 2} 10.76039{col 37}{space 1}    0.18{col 46}{space 3}0.858{col 54}{space 4}-20.31251{col 67}{space 3} 24.20661
{txt}{space 9}19  {c |}{col 14}{res}{space 2} 10.20089{col 26}{space 2} 17.93699{col 37}{space 1}    0.57{col 46}{space 3}0.575{col 54}{space 4}-26.90461{col 67}{space 3} 47.30639
{txt}{space 9}21  {c |}{col 14}{res}{space 2} 6.127334{col 26}{space 2}   10.652{col 37}{space 1}    0.58{col 46}{space 3}0.571{col 54}{space 4}-15.90801{col 67}{space 3} 28.16268
{txt}{space 9}22  {c |}{col 14}{res}{space 2} 16.95471{col 26}{space 2} 9.242966{col 37}{space 1}    1.83{col 46}{space 3}0.080{col 54}{space 4}-2.165821{col 67}{space 3} 36.07525
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 12.34092{col 26}{space 2} 6.364747{col 37}{space 1}    1.94{col 46}{space 3}0.065{col 54}{space 4}-.8255571{col 67}{space 3} 25.50741
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 6.320073{col 26}{space 2} 15.56835{col 37}{space 1}    0.41{col 46}{space 3}0.689{col 54}{space 4}-25.88551{col 67}{space 3} 38.52565
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .4340982{col 26}{space 2}  8.76672{col 37}{space 1}    0.05{col 46}{space 3}0.961{col 54}{space 4}-17.70124{col 67}{space 3} 18.56944
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 82.57337{col 26}{space 2} 34.22841{col 37}{space 1}    2.41{col 46}{space 3}0.024{col 54}{space 4} 11.76651{col 67}{space 3} 153.3802
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 9.369736{col 26}{space 2} 10.96499{col 37}{space 1}    0.85{col 46}{space 3}0.402{col 54}{space 4}-13.31308{col 67}{space 3} 32.05255
{txt}{space 9}28  {c |}{col 14}{res}{space 2} 8.645212{col 26}{space 2} 18.94388{col 37}{space 1}    0.46{col 46}{space 3}0.652{col 54}{space 4}-30.54319{col 67}{space 3} 47.83361
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} 162.3109{col 26}{space 2} 613.9177{col 37}{space 1}    0.26{col 46}{space 3}0.794{col 54}{space 4}-1107.675{col 67}{space 3} 1432.296
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.6734007
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2014.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 2015.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 3.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 7.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 15.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 16.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 21.cid = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 22.cid = 0{p_end}
{p 0 7}{space 1}{text:(37)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(38)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(39)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(40)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(41)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(42)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 6 dropped
       Constraint 10 dropped
       Constraint 13 dropped
       Constraint 20 dropped
       Constraint 22 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 28 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 33 dropped
       Constraint 34 dropped
       Constraint 35 dropped
       Constraint 36 dropped
       Constraint 37 dropped
       Constraint 38 dropped
       Constraint 39 dropped
       Constraint 41 dropped

       F( 23,    23) ={res}  298.66
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       456{col 27}-1928.546{col 38} -1647.43{col 49}    23{col 58} 3340.861{col 69} 3435.678
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 403) = {res}    57.25
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod k pop14 pop65 male lex infmo tobaco alcohc  i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}{help j_robustsingular:F(15, 16) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.7668
                                                {txt}Root MSE          =    {res} 10.326

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2} .1437657{col 26}{space 2} .3333654{col 37}{space 1}    0.43{col 46}{space 3}0.672{col 54}{space 4}-.5629373{col 67}{space 3} .8504688
{txt}{space 11}k {c |}{col 14}{res}{space 2} .2926274{col 26}{space 2} 2.642649{col 37}{space 1}    0.11{col 46}{space 3}0.913{col 54}{space 4}-5.309537{col 67}{space 3} 5.894792
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-.4418923{col 26}{space 2} 4.238781{col 37}{space 1}   -0.10{col 46}{space 3}0.918{col 54}{space 4}-9.427708{col 67}{space 3} 8.543923
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .9852067{col 26}{space 2} 2.275158{col 37}{space 1}    0.43{col 46}{space 3}0.671{col 54}{space 4}-3.837912{col 67}{space 3} 5.808326
{txt}{space 8}male {c |}{col 14}{res}{space 2} 5.118015{col 26}{space 2} 11.93611{col 37}{space 1}    0.43{col 46}{space 3}0.674{col 54}{space 4} -20.1854{col 67}{space 3} 30.42143
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 3.075389{col 26}{space 2} 6.306028{col 37}{space 1}    0.49{col 46}{space 3}0.632{col 54}{space 4}-10.29279{col 67}{space 3} 16.44357
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 2.762481{col 26}{space 2}  .582899{col 37}{space 1}    4.74{col 46}{space 3}0.000{col 54}{space 4} 1.526791{col 67}{space 3} 3.998172
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2} .0007679{col 26}{space 2} .0053813{col 37}{space 1}    0.14{col 46}{space 3}0.888{col 54}{space 4}-.0106399{col 67}{space 3} .0121757
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2}-1.409211{col 26}{space 2} 2.708842{col 37}{space 1}   -0.52{col 46}{space 3}0.610{col 54}{space 4}-7.151701{col 67}{space 3} 4.333278
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1997  {c |}{col 14}{res}{space 2}-1.307083{col 26}{space 2} 2.430813{col 37}{space 1}   -0.54{col 46}{space 3}0.598{col 54}{space 4}-6.460175{col 67}{space 3} 3.846009
{txt}{space 7}1998  {c |}{col 14}{res}{space 2}-.7399375{col 26}{space 2} 5.838913{col 37}{space 1}   -0.13{col 46}{space 3}0.901{col 54}{space 4}-13.11788{col 67}{space 3}   11.638
{txt}{space 7}1999  {c |}{col 14}{res}{space 2}  4.21754{col 26}{space 2}  7.87465{col 37}{space 1}    0.54{col 46}{space 3}0.600{col 54}{space 4}-12.47597{col 67}{space 3} 20.91105
{txt}{space 7}2000  {c |}{col 14}{res}{space 2} 5.132225{col 26}{space 2} 10.86393{col 37}{space 1}    0.47{col 46}{space 3}0.643{col 54}{space 4}-17.89828{col 67}{space 3} 28.16273
{txt}{space 7}2001  {c |}{col 14}{res}{space 2} 4.694701{col 26}{space 2} 12.44826{col 37}{space 1}    0.38{col 46}{space 3}0.711{col 54}{space 4}-21.69444{col 67}{space 3} 31.08384
{txt}{space 7}2002  {c |}{col 14}{res}{space 2}  5.16634{col 26}{space 2} 12.28436{col 37}{space 1}    0.42{col 46}{space 3}0.680{col 54}{space 4}-20.87533{col 67}{space 3} 31.20801
{txt}{space 7}2003  {c |}{col 14}{res}{space 2} 5.502934{col 26}{space 2} 14.17979{col 37}{space 1}    0.39{col 46}{space 3}0.703{col 54}{space 4}-24.55689{col 67}{space 3} 35.56275
{txt}{space 7}2004  {c |}{col 14}{res}{space 2} 7.086653{col 26}{space 2} 17.92119{col 37}{space 1}    0.40{col 46}{space 3}0.698{col 54}{space 4}-30.90458{col 67}{space 3} 45.07789
{txt}{space 7}2005  {c |}{col 14}{res}{space 2} 7.931625{col 26}{space 2} 19.40735{col 37}{space 1}    0.41{col 46}{space 3}0.688{col 54}{space 4}-33.21012{col 67}{space 3} 49.07337
{txt}{space 7}2006  {c |}{col 14}{res}{space 2} 6.634307{col 26}{space 2} 20.84388{col 37}{space 1}    0.32{col 46}{space 3}0.754{col 54}{space 4}-37.55275{col 67}{space 3} 50.82136
{txt}{space 7}2007  {c |}{col 14}{res}{space 2} 7.006807{col 26}{space 2} 24.00442{col 37}{space 1}    0.29{col 46}{space 3}0.774{col 54}{space 4}-43.88029{col 67}{space 3}  57.8939
{txt}{space 7}2008  {c |}{col 14}{res}{space 2} 4.483364{col 26}{space 2} 24.62929{col 37}{space 1}    0.18{col 46}{space 3}0.858{col 54}{space 4}-47.72839{col 67}{space 3} 56.69512
{txt}{space 7}2009  {c |}{col 14}{res}{space 2}  4.95727{col 26}{space 2} 22.93147{col 37}{space 1}    0.22{col 46}{space 3}0.832{col 54}{space 4}-43.65528{col 67}{space 3} 53.56982
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}   3.2543{col 26}{space 2} 24.30648{col 37}{space 1}    0.13{col 46}{space 3}0.895{col 54}{space 4}-48.27313{col 67}{space 3} 54.78173
{txt}{space 7}2011  {c |}{col 14}{res}{space 2} 1.590663{col 26}{space 2} 25.92312{col 37}{space 1}    0.06{col 46}{space 3}0.952{col 54}{space 4} -53.3639{col 67}{space 3} 56.54523
{txt}{space 7}2012  {c |}{col 14}{res}{space 2} .4059495{col 26}{space 2}  25.4912{col 37}{space 1}    0.02{col 46}{space 3}0.987{col 54}{space 4}-53.63299{col 67}{space 3} 54.44489
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-2.613081{col 26}{space 2} 26.86021{col 37}{space 1}   -0.10{col 46}{space 3}0.924{col 54}{space 4}-59.55419{col 67}{space 3} 54.32803
{txt}{space 7}2014  {c |}{col 14}{res}{space 2}-3.762004{col 26}{space 2} 29.02546{col 37}{space 1}   -0.13{col 46}{space 3}0.898{col 54}{space 4}-65.29323{col 67}{space 3} 57.76922
{txt}{space 7}2015  {c |}{col 14}{res}{space 2}-5.271919{col 26}{space 2} 27.62302{col 37}{space 1}   -0.19{col 46}{space 3}0.851{col 54}{space 4}-63.83012{col 67}{space 3} 53.28628
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}6  {c |}{col 14}{res}{space 2} 4.954765{col 26}{space 2} 36.67665{col 37}{space 1}    0.14{col 46}{space 3}0.894{col 54}{space 4}-72.79625{col 67}{space 3} 82.70578
{txt}{space 10}8  {c |}{col 14}{res}{space 2} -2.13811{col 26}{space 2} 35.24942{col 37}{space 1}   -0.06{col 46}{space 3}0.952{col 54}{space 4}-76.86355{col 67}{space 3} 72.58733
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 3.397443{col 26}{space 2}  44.3642{col 37}{space 1}    0.08{col 46}{space 3}0.940{col 54}{space 4}-90.65045{col 67}{space 3} 97.44534
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-4.871058{col 26}{space 2} 25.42173{col 37}{space 1}   -0.19{col 46}{space 3}0.850{col 54}{space 4}-58.76272{col 67}{space 3}  49.0206
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-.8053542{col 26}{space 2} 22.43888{col 37}{space 1}   -0.04{col 46}{space 3}0.972{col 54}{space 4}-48.37366{col 67}{space 3} 46.76295
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 3.817226{col 26}{space 2} 27.23511{col 37}{space 1}    0.14{col 46}{space 3}0.890{col 54}{space 4}-53.91862{col 67}{space 3} 61.55307
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-4.228447{col 26}{space 2} 60.93833{col 37}{space 1}   -0.07{col 46}{space 3}0.946{col 54}{space 4}-133.4119{col 67}{space 3}  124.955
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-11.04621{col 26}{space 2} 51.11964{col 37}{space 1}   -0.22{col 46}{space 3}0.832{col 54}{space 4} -119.415{col 67}{space 3} 97.32258
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-24.10276{col 26}{space 2} 36.00727{col 37}{space 1}   -0.67{col 46}{space 3}0.513{col 54}{space 4}-100.4348{col 67}{space 3} 52.22925
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-23.99834{col 26}{space 2} 46.86173{col 37}{space 1}   -0.51{col 46}{space 3}0.616{col 54}{space 4}-123.3408{col 67}{space 3}  75.3441
{txt}{space 9}23  {c |}{col 14}{res}{space 2}  -17.253{col 26}{space 2} 37.97779{col 37}{space 1}   -0.45{col 46}{space 3}0.656{col 54}{space 4}-97.76232{col 67}{space 3} 63.25633
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-19.49826{col 26}{space 2} 45.75466{col 37}{space 1}   -0.43{col 46}{space 3}0.676{col 54}{space 4}-116.4938{col 67}{space 3} 77.49728
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-15.10299{col 26}{space 2} 42.32471{col 37}{space 1}   -0.36{col 46}{space 3}0.726{col 54}{space 4}-104.8274{col 67}{space 3} 74.62138
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 9.222247{col 26}{space 2} 42.88395{col 37}{space 1}    0.22{col 46}{space 3}0.832{col 54}{space 4}-81.68767{col 67}{space 3} 100.1322
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-9.353972{col 26}{space 2} 40.83154{col 37}{space 1}   -0.23{col 46}{space 3}0.822{col 54}{space 4}-95.91297{col 67}{space 3} 77.20503
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-16.78228{col 26}{space 2} 20.44881{col 37}{space 1}   -0.82{col 46}{space 3}0.424{col 54}{space 4}-60.13181{col 67}{space 3} 26.56726
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-434.2567{col 26}{space 2}  1106.71{col 37}{space 1}   -0.39{col 46}{space 3}0.700{col 54}{space 4}-2780.378{col 67}{space 3} 1911.865
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.72383176
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2014.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 2015.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 4 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 10 dropped
       Constraint 12 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 16 dropped
       Constraint 18 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 34 dropped

       F( 16,    16) ={res}  210.49
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-1041.538{col 49}    16{col 58} 2115.077{col 69}  2173.46
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest 

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 236) = {res}    68.78
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod k pop14 pop65 male lex infmo tobaco alcohc gdpg i.year i.cid, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}{help j_robustsingular:F(15, 16) }        =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.7688
                                                {txt}Root MSE          =    {res} 10.303

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2} .2544076{col 26}{space 2} .3413925{col 37}{space 1}    0.75{col 46}{space 3}0.467{col 54}{space 4}-.4693121{col 67}{space 3} .9781273
{txt}{space 11}k {c |}{col 14}{res}{space 2} .4563036{col 26}{space 2} 2.498706{col 37}{space 1}    0.18{col 46}{space 3}0.857{col 54}{space 4}-4.840716{col 67}{space 3} 5.753323
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-.7035137{col 26}{space 2} 4.271189{col 37}{space 1}   -0.16{col 46}{space 3}0.871{col 54}{space 4}-9.758029{col 67}{space 3} 8.351002
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2}  1.16312{col 26}{space 2} 2.277105{col 37}{space 1}    0.51{col 46}{space 3}0.616{col 54}{space 4}-3.664126{col 67}{space 3} 5.990366
{txt}{space 8}male {c |}{col 14}{res}{space 2} 5.724388{col 26}{space 2} 12.08279{col 37}{space 1}    0.47{col 46}{space 3}0.642{col 54}{space 4}-19.88998{col 67}{space 3} 31.33875
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 2.995316{col 26}{space 2} 6.373539{col 37}{space 1}    0.47{col 46}{space 3}0.645{col 54}{space 4}-10.51598{col 67}{space 3} 16.50661
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} 2.692793{col 26}{space 2} .5815083{col 37}{space 1}    4.63{col 46}{space 3}0.000{col 54}{space 4} 1.460051{col 67}{space 3} 3.925536
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2} .0007926{col 26}{space 2} .0052212{col 37}{space 1}    0.15{col 46}{space 3}0.881{col 54}{space 4}-.0102759{col 67}{space 3} .0118612
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2}-1.533504{col 26}{space 2} 2.780217{col 37}{space 1}   -0.55{col 46}{space 3}0.589{col 54}{space 4}-7.427302{col 67}{space 3} 4.360294
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2}-.4238284{col 26}{space 2} .3883593{col 37}{space 1}   -1.09{col 46}{space 3}0.291{col 54}{space 4}-1.247113{col 67}{space 3} .3994566
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}1997  {c |}{col 14}{res}{space 2}-1.080693{col 26}{space 2} 2.491671{col 37}{space 1}   -0.43{col 46}{space 3}0.670{col 54}{space 4}-6.362801{col 67}{space 3} 4.201414
{txt}{space 7}1998  {c |}{col 14}{res}{space 2}-.7962666{col 26}{space 2} 5.758409{col 37}{space 1}   -0.14{col 46}{space 3}0.892{col 54}{space 4}-13.00355{col 67}{space 3} 11.41102
{txt}{space 7}1999  {c |}{col 14}{res}{space 2} 3.885521{col 26}{space 2} 7.534567{col 37}{space 1}    0.52{col 46}{space 3}0.613{col 54}{space 4}-12.08705{col 67}{space 3} 19.85809
{txt}{space 7}2000  {c |}{col 14}{res}{space 2} 5.237145{col 26}{space 2} 11.05531{col 37}{space 1}    0.47{col 46}{space 3}0.642{col 54}{space 4}-18.19906{col 67}{space 3} 28.67335
{txt}{space 7}2001  {c |}{col 14}{res}{space 2} 3.687438{col 26}{space 2} 11.96214{col 37}{space 1}    0.31{col 46}{space 3}0.762{col 54}{space 4}-21.67116{col 67}{space 3} 29.04603
{txt}{space 7}2002  {c |}{col 14}{res}{space 2} 3.884557{col 26}{space 2} 11.94963{col 37}{space 1}    0.33{col 46}{space 3}0.749{col 54}{space 4}-21.44753{col 67}{space 3} 29.21664
{txt}{space 7}2003  {c |}{col 14}{res}{space 2} 3.897883{col 26}{space 2}  13.4573{col 37}{space 1}    0.29{col 46}{space 3}0.776{col 54}{space 4}-24.63031{col 67}{space 3} 32.42608
{txt}{space 7}2004  {c |}{col 14}{res}{space 2} 5.857288{col 26}{space 2} 17.32193{col 37}{space 1}    0.34{col 46}{space 3}0.740{col 54}{space 4}-30.86355{col 67}{space 3} 42.57813
{txt}{space 7}2005  {c |}{col 14}{res}{space 2} 6.124487{col 26}{space 2} 18.47259{col 37}{space 1}    0.33{col 46}{space 3}0.745{col 54}{space 4}-33.03565{col 67}{space 3} 45.28463
{txt}{space 7}2006  {c |}{col 14}{res}{space 2} 4.624565{col 26}{space 2} 19.73245{col 37}{space 1}    0.23{col 46}{space 3}0.818{col 54}{space 4}-37.20636{col 67}{space 3} 46.45549
{txt}{space 7}2007  {c |}{col 14}{res}{space 2} 4.335417{col 26}{space 2} 22.32327{col 37}{space 1}    0.19{col 46}{space 3}0.848{col 54}{space 4}-42.98781{col 67}{space 3} 51.65864
{txt}{space 7}2008  {c |}{col 14}{res}{space 2} .0920951{col 26}{space 2} 21.92704{col 37}{space 1}    0.00{col 46}{space 3}0.997{col 54}{space 4}-46.39115{col 67}{space 3} 46.57534
{txt}{space 7}2009  {c |}{col 14}{res}{space 2}-1.374577{col 26}{space 2} 19.48054{col 37}{space 1}   -0.07{col 46}{space 3}0.945{col 54}{space 4}-42.67147{col 67}{space 3} 39.92231
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}-.7933378{col 26}{space 2} 22.34829{col 37}{space 1}   -0.04{col 46}{space 3}0.972{col 54}{space 4}-48.16959{col 67}{space 3} 46.58291
{txt}{space 7}2011  {c |}{col 14}{res}{space 2}-2.757231{col 26}{space 2} 23.75311{col 37}{space 1}   -0.12{col 46}{space 3}0.909{col 54}{space 4}-53.11158{col 67}{space 3} 47.59712
{txt}{space 7}2012  {c |}{col 14}{res}{space 2} -4.79181{col 26}{space 2} 22.90054{col 37}{space 1}   -0.21{col 46}{space 3}0.837{col 54}{space 4}-53.33878{col 67}{space 3} 43.75516
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-7.561141{col 26}{space 2} 24.53893{col 37}{space 1}   -0.31{col 46}{space 3}0.762{col 54}{space 4}-59.58134{col 67}{space 3} 44.45906
{txt}{space 7}2014  {c |}{col 14}{res}{space 2}-8.340891{col 26}{space 2} 26.70863{col 37}{space 1}   -0.31{col 46}{space 3}0.759{col 54}{space 4}-64.96066{col 67}{space 3} 48.27888
{txt}{space 7}2015  {c |}{col 14}{res}{space 2}-9.302644{col 26}{space 2} 25.78309{col 37}{space 1}   -0.36{col 46}{space 3}0.723{col 54}{space 4}-63.96035{col 67}{space 3} 45.35506
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}6  {c |}{col 14}{res}{space 2} 1.607208{col 26}{space 2} 34.42807{col 37}{space 1}    0.05{col 46}{space 3}0.963{col 54}{space 4}-71.37704{col 67}{space 3} 74.59146
{txt}{space 10}8  {c |}{col 14}{res}{space 2}-4.828258{col 26}{space 2} 33.20766{col 37}{space 1}   -0.15{col 46}{space 3}0.886{col 54}{space 4}-75.22535{col 67}{space 3} 65.56884
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 1.348272{col 26}{space 2} 43.16148{col 37}{space 1}    0.03{col 46}{space 3}0.975{col 54}{space 4}-90.14999{col 67}{space 3} 92.84653
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-8.850227{col 26}{space 2} 23.29323{col 37}{space 1}   -0.38{col 46}{space 3}0.709{col 54}{space 4}-58.22967{col 67}{space 3} 40.52922
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-3.047496{col 26}{space 2} 21.82573{col 37}{space 1}   -0.14{col 46}{space 3}0.891{col 54}{space 4}-49.31597{col 67}{space 3} 43.22097
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 5.078755{col 26}{space 2} 26.90455{col 37}{space 1}    0.19{col 46}{space 3}0.853{col 54}{space 4}-51.95634{col 67}{space 3} 62.11385
{txt}{space 9}13  {c |}{col 14}{res}{space 2} -4.43674{col 26}{space 2}  60.6086{col 37}{space 1}   -0.07{col 46}{space 3}0.943{col 54}{space 4}-132.9212{col 67}{space 3} 124.0478
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-10.92012{col 26}{space 2} 51.13676{col 37}{space 1}   -0.21{col 46}{space 3}0.834{col 54}{space 4}-119.3252{col 67}{space 3} 97.48497
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-27.28591{col 26}{space 2} 34.01126{col 37}{space 1}   -0.80{col 46}{space 3}0.434{col 54}{space 4}-99.38656{col 67}{space 3} 44.81475
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-29.23714{col 26}{space 2}  43.6853{col 37}{space 1}   -0.67{col 46}{space 3}0.513{col 54}{space 4}-121.8458{col 67}{space 3} 63.37157
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-19.82493{col 26}{space 2} 36.21959{col 37}{space 1}   -0.55{col 46}{space 3}0.592{col 54}{space 4}-96.60703{col 67}{space 3} 56.95717
{txt}{space 9}24  {c |}{col 14}{res}{space 2} -23.4734{col 26}{space 2} 43.34297{col 37}{space 1}   -0.54{col 46}{space 3}0.596{col 54}{space 4}-115.3564{col 67}{space 3} 68.40958
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-18.23151{col 26}{space 2} 40.25944{col 37}{space 1}   -0.45{col 46}{space 3}0.657{col 54}{space 4}-103.5777{col 67}{space 3} 67.11468
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 13.54842{col 26}{space 2} 43.38099{col 37}{space 1}    0.31{col 46}{space 3}0.759{col 54}{space 4}-78.41517{col 67}{space 3}  105.512
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-11.29562{col 26}{space 2} 39.26956{col 37}{space 1}   -0.29{col 46}{space 3}0.777{col 54}{space 4}-94.54336{col 67}{space 3} 71.95212
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-17.61673{col 26}{space 2} 20.30468{col 37}{space 1}   -0.87{col 46}{space 3}0.398{col 54}{space 4}-60.66073{col 67}{space 3} 25.42726
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-468.5191{col 26}{space 2} 1097.797{col 37}{space 1}   -0.43{col 46}{space 3}0.675{col 54}{space 4}-2795.744{col 67}{space 3} 1858.706
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.72507669
{txt}
{com}. testparm i.year i.cid

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1997.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 1998.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 1999.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 2000.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 2001.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 2002.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 2003.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 2004.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 2005.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 2006.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 2007.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 2008.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 2009.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 2010.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 2011.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 2012.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 2013.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 2014.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 2015.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 28.cid = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 10 dropped
       Constraint 12 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 16 dropped
       Constraint 18 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 34 dropped

       F( 16,    16) ={res}  113.58
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-1040.301{col 49}    16{col 58} 2112.603{col 69} 2170.986
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 235) = {res}    64.55
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod k pop14 pop65 male lex infmo cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       456
                                                {txt}{help j_robustsingular:F(6, 23) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.8876
                                                {txt}Root MSE          =    {res}  5.939

{txt}{ralign 78:(Std. Err. adjusted for {res:24} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.9150225{col 26}{space 2} .6777336{col 37}{space 1}   -1.35{col 46}{space 3}0.190{col 54}{space 4}-2.317021{col 67}{space 3} .4869763
{txt}{space 11}k {c |}{col 14}{res}{space 2}-.0577139{col 26}{space 2} .7905658{col 37}{space 1}   -0.07{col 46}{space 3}0.942{col 54}{space 4}-1.693124{col 67}{space 3} 1.577696
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-3.624506{col 26}{space 2}  2.96611{col 37}{space 1}   -1.22{col 46}{space 3}0.234{col 54}{space 4}-9.760371{col 67}{space 3}  2.51136
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} .1858363{col 26}{space 2} 1.442244{col 37}{space 1}    0.13{col 46}{space 3}0.899{col 54}{space 4}-2.797672{col 67}{space 3} 3.169345
{txt}{space 8}male {c |}{col 14}{res}{space 2}-8.244787{col 26}{space 2} 9.865718{col 37}{space 1}   -0.84{col 46}{space 3}0.412{col 54}{space 4}-28.65358{col 67}{space 3} 12.16401
{txt}{space 9}lex {c |}{col 14}{res}{space 2} .2405864{col 26}{space 2} .8826614{col 37}{space 1}    0.27{col 46}{space 3}0.788{col 54}{space 4}-1.585338{col 67}{space 3} 2.066511
{txt}{space 7}infmo {c |}{col 14}{res}{space 2} -1.05774{col 26}{space 2} .6142389{col 37}{space 1}   -1.72{col 46}{space 3}0.098{col 54}{space 4} -2.32839{col 67}{space 3} .2129099
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}3  {c |}{col 14}{res}{space 2} 2629.922{col 26}{space 2} 786.6544{col 37}{space 1}    3.34{col 46}{space 3}0.003{col 54}{space 4} 1002.604{col 67}{space 3} 4257.241
{txt}{space 10}5  {c |}{col 14}{res}{space 2}-3979.254{col 26}{space 2} 604.0334{col 37}{space 1}   -6.59{col 46}{space 3}0.000{col 54}{space 4}-5228.793{col 67}{space 3}-2729.716
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 567.3798{col 26}{space 2} 945.3056{col 37}{space 1}    0.60{col 46}{space 3}0.554{col 54}{space 4}-1388.134{col 67}{space 3} 2522.893
{txt}{space 10}7  {c |}{col 14}{res}{space 2}-175.2728{col 26}{space 2} 951.7733{col 37}{space 1}   -0.18{col 46}{space 3}0.856{col 54}{space 4}-2144.166{col 67}{space 3}  1793.62
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 727.1516{col 26}{space 2} 407.4023{col 37}{space 1}    1.78{col 46}{space 3}0.087{col 54}{space 4}-115.6243{col 67}{space 3} 1569.927
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 470.4313{col 26}{space 2} 739.1474{col 37}{space 1}    0.64{col 46}{space 3}0.531{col 54}{space 4}-1058.612{col 67}{space 3} 1999.474
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-264.1806{col 26}{space 2} 434.3467{col 37}{space 1}   -0.61{col 46}{space 3}0.549{col 54}{space 4}-1162.695{col 67}{space 3}  634.334
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 5111.866{col 26}{space 2} 1586.926{col 37}{space 1}    3.22{col 46}{space 3}0.004{col 54}{space 4} 1829.059{col 67}{space 3} 8394.673
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-2048.406{col 26}{space 2} 1051.105{col 37}{space 1}   -1.95{col 46}{space 3}0.064{col 54}{space 4}-4222.782{col 67}{space 3} 125.9698
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 3093.441{col 26}{space 2} 1045.482{col 37}{space 1}    2.96{col 46}{space 3}0.007{col 54}{space 4} 930.6966{col 67}{space 3} 5256.186
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-5182.282{col 26}{space 2} 1496.306{col 37}{space 1}   -3.46{col 46}{space 3}0.002{col 54}{space 4}-8277.628{col 67}{space 3}-2086.936
{txt}{space 9}15  {c |}{col 14}{res}{space 2} 618.6675{col 26}{space 2} 852.4969{col 37}{space 1}    0.73{col 46}{space 3}0.475{col 54}{space 4}-1144.857{col 67}{space 3} 2382.192
{txt}{space 9}16  {c |}{col 14}{res}{space 2}  1140.93{col 26}{space 2} 1652.216{col 37}{space 1}    0.69{col 46}{space 3}0.497{col 54}{space 4}-2276.938{col 67}{space 3} 4558.798
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-2081.433{col 26}{space 2} 499.2857{col 37}{space 1}   -4.17{col 46}{space 3}0.000{col 54}{space 4}-3114.284{col 67}{space 3}-1048.582
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-4785.505{col 26}{space 2} 2269.358{col 37}{space 1}   -2.11{col 46}{space 3}0.046{col 54}{space 4}-9480.029{col 67}{space 3}-90.98089
{txt}{space 9}21  {c |}{col 14}{res}{space 2} 3578.099{col 26}{space 2} 1978.753{col 37}{space 1}    1.81{col 46}{space 3}0.084{col 54}{space 4} -515.263{col 67}{space 3} 7671.461
{txt}{space 9}22  {c |}{col 14}{res}{space 2} 3504.011{col 26}{space 2} 1257.395{col 37}{space 1}    2.79{col 46}{space 3}0.010{col 54}{space 4} 902.8908{col 67}{space 3} 6105.132
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 4047.362{col 26}{space 2} 739.3572{col 37}{space 1}    5.47{col 46}{space 3}0.000{col 54}{space 4} 2517.885{col 67}{space 3} 5576.838
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-883.3122{col 26}{space 2} 322.4542{col 37}{space 1}   -2.74{col 46}{space 3}0.012{col 54}{space 4} -1550.36{col 67}{space 3}-216.2648
{txt}{space 9}25  {c |}{col 14}{res}{space 2} 906.9579{col 26}{space 2} 784.3271{col 37}{space 1}    1.16{col 46}{space 3}0.259{col 54}{space 4}-715.5464{col 67}{space 3} 2529.462
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 15243.73{col 26}{space 2} 3558.939{col 37}{space 1}    4.28{col 46}{space 3}0.000{col 54}{space 4} 7881.499{col 67}{space 3} 22605.95
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-542.2737{col 26}{space 2} 498.4557{col 37}{space 1}   -1.09{col 46}{space 3}0.288{col 54}{space 4}-1573.408{col 67}{space 3} 488.8605
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-1781.877{col 26}{space 2} 561.4099{col 37}{space 1}   -3.17{col 46}{space 3}0.004{col 54}{space 4}-2943.241{col 67}{space 3}-620.5118
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} 1.394631{col 26}{space 2} .9912273{col 37}{space 1}    1.41{col 46}{space 3}0.173{col 54}{space 4}-.6558793{col 67}{space 3} 3.445141
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 3  {c |}{col 14}{res}{space 2}-1.294526{col 26}{space 2} .3961228{col 37}{space 1}   -3.27{col 46}{space 3}0.003{col 54}{space 4}-2.113969{col 67}{space 3}-.4750834
{txt}{space 9} 5  {c |}{col 14}{res}{space 2} 1.971871{col 26}{space 2} .3029621{col 37}{space 1}    6.51{col 46}{space 3}0.000{col 54}{space 4} 1.345147{col 67}{space 3} 2.598596
{txt}{space 9} 6  {c |}{col 14}{res}{space 2}-.2691647{col 26}{space 2} .4776256{col 37}{space 1}   -0.56{col 46}{space 3}0.579{col 54}{space 4}-1.257208{col 67}{space 3}  .718879
{txt}{space 9} 7  {c |}{col 14}{res}{space 2} .0683136{col 26}{space 2} .4712284{col 37}{space 1}    0.14{col 46}{space 3}0.886{col 54}{space 4}-.9064965{col 67}{space 3} 1.043124
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-.3583514{col 26}{space 2} .2032261{col 37}{space 1}   -1.76{col 46}{space 3}0.091{col 54}{space 4}-.7787566{col 67}{space 3} .0620539
{txt}{space 9} 9  {c |}{col 14}{res}{space 2}-.2240485{col 26}{space 2}  .371086{col 37}{space 1}   -0.60{col 46}{space 3}0.552{col 54}{space 4}-.9916984{col 67}{space 3} .5436014
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .1340349{col 26}{space 2} .2166558{col 37}{space 1}    0.62{col 46}{space 3}0.542{col 54}{space 4}-.3141518{col 67}{space 3} .5822216
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-2.547995{col 26}{space 2} .7939096{col 37}{space 1}   -3.21{col 46}{space 3}0.004{col 54}{space 4}-4.190322{col 67}{space 3}-.9056676
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 1.002464{col 26}{space 2} .5338936{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4}-.1019792{col 67}{space 3} 2.106907
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-1.525698{col 26}{space 2} .5119046{col 37}{space 1}   -2.98{col 46}{space 3}0.007{col 54}{space 4}-2.584653{col 67}{space 3}-.4667423
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 2.597366{col 26}{space 2} .7538006{col 37}{space 1}    3.45{col 46}{space 3}0.002{col 54}{space 4} 1.038011{col 67}{space 3} 4.156722
{txt}{space 9}15  {c |}{col 14}{res}{space 2} -.313752{col 26}{space 2} .4258818{col 37}{space 1}   -0.74{col 46}{space 3}0.469{col 54}{space 4}-1.194756{col 67}{space 3} .5672516
{txt}{space 9}16  {c |}{col 14}{res}{space 2}-.5435209{col 26}{space 2} .8379257{col 37}{space 1}   -0.65{col 46}{space 3}0.523{col 54}{space 4}-2.276902{col 67}{space 3} 1.189861
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 1.044354{col 26}{space 2} .2479097{col 37}{space 1}    4.21{col 46}{space 3}0.000{col 54}{space 4} .5315141{col 67}{space 3} 1.557195
{txt}{space 9}19  {c |}{col 14}{res}{space 2} 2.402912{col 26}{space 2} 1.145486{col 37}{space 1}    2.10{col 46}{space 3}0.047{col 54}{space 4} .0332936{col 67}{space 3}  4.77253
{txt}{space 9}21  {c |}{col 14}{res}{space 2}-1.792003{col 26}{space 2} .9944872{col 37}{space 1}   -1.80{col 46}{space 3}0.085{col 54}{space 4}-3.849257{col 67}{space 3}   .26525
{txt}{space 9}22  {c |}{col 14}{res}{space 2}-1.746069{col 26}{space 2} .6255576{col 37}{space 1}   -2.79{col 46}{space 3}0.010{col 54}{space 4}-3.040134{col 67}{space 3}-.4520046
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-2.013382{col 26}{space 2} .3679723{col 37}{space 1}   -5.47{col 46}{space 3}0.000{col 54}{space 4}-2.774591{col 67}{space 3}-1.252173
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .4473615{col 26}{space 2} .1628089{col 37}{space 1}    2.75{col 46}{space 3}0.011{col 54}{space 4} .1105657{col 67}{space 3} .7841573
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-.4451609{col 26}{space 2} .3932853{col 37}{space 1}   -1.13{col 46}{space 3}0.269{col 54}{space 4}-1.258734{col 67}{space 3} .3684118
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-7.545502{col 26}{space 2}  1.75519{col 37}{space 1}   -4.30{col 46}{space 3}0.000{col 54}{space 4}-11.17639{col 67}{space 3}-3.914615
{txt}{space 9}27  {c |}{col 14}{res}{space 2} .2743897{col 26}{space 2} .2476851{col 37}{space 1}    1.11{col 46}{space 3}0.279{col 54}{space 4} -.237986{col 67}{space 3} .7867654
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .8992323{col 26}{space 2} .2784192{col 37}{space 1}    3.23{col 46}{space 3}0.004{col 54}{space 4} .3232782{col 67}{space 3} 1.475186
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-2215.169{col 26}{space 2} 1731.133{col 37}{space 1}   -1.28{col 46}{space 3}0.213{col 54}{space 4}-5796.291{col 67}{space 3} 1365.953
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.87251921
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}3.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 5.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 7.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 15.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 16.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 21.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 22.cid = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 3.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 7.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(34)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(35)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(36)}{space 1} 15.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(37)}{space 1} 16.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(38)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(39)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(40)}{space 1} 21.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(41)}{space 1} 22.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(42)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(43)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(44)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(45)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(46)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(47)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 11 dropped
       Constraint 12 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped
       Constraint 34 dropped
       Constraint 35 dropped
       Constraint 36 dropped
       Constraint 37 dropped
       Constraint 38 dropped
       Constraint 39 dropped
       Constraint 40 dropped
       Constraint 41 dropped
       Constraint 42 dropped
       Constraint 43 dropped
       Constraint 44 dropped
       Constraint 45 dropped
       Constraint 46 dropped
       Constraint 47 dropped

       F(  7,    23) ={res}   66.17
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 1.cid#c.year  2.cid#c.year  3.cid#c.year  4.cid#c.year  5.cid#c.year  ///
>          6.cid#c.year  7.cid#c.year  8.cid#c.year  9.cid#c.year  10.cid#c.year  ///
>                  11.cid#c.year  12.cid#c.year  13.cid#c.year  14.cid#c.year  15.cid#c.year  ///
>                  16.cid#c.year  17.cid#c.year  18.cid#c.year  19.cid#c.year  20.cid#c.year  ///
>                  21.cid#c.year  22.cid#c.year  23.cid#c.year  24.cid#c.year  25.cid#c.year  ///
>                  26.cid#c.year  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}3.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 5.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 7.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 15.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 16.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 21.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} 22.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 1 dropped
       Constraint 2 dropped
       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 5 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 11 dropped
       Constraint 12 dropped
       Constraint 13 dropped
       Constraint 14 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 23 dropped

       F(  7,    23) ={res}   65.27
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       456{col 27}-1928.546{col 38} -1430.11{col 49}     7{col 58}  2874.22{col 69} 2903.077
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 398) = {res}    61.76
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod k pop14 pop65 male lex infmo tobaco alcohc cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}{help j_robustsingular:F(8, 16) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.8901
                                                {txt}Root MSE          =    {res}  7.059

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-1.051045{col 26}{space 2} .8539065{col 37}{space 1}   -1.23{col 46}{space 3}0.236{col 54}{space 4}-2.861246{col 67}{space 3} .7591556
{txt}{space 11}k {c |}{col 14}{res}{space 2} .2913778{col 26}{space 2} 1.145307{col 37}{space 1}    0.25{col 46}{space 3}0.802{col 54}{space 4}-2.136564{col 67}{space 3}  2.71932
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-1.908831{col 26}{space 2} 5.096705{col 37}{space 1}   -0.37{col 46}{space 3}0.713{col 54}{space 4}-12.71336{col 67}{space 3} 8.895701
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} 1.200714{col 26}{space 2} 2.054052{col 37}{space 1}    0.58{col 46}{space 3}0.567{col 54}{space 4}-3.153683{col 67}{space 3} 5.555111
{txt}{space 8}male {c |}{col 14}{res}{space 2}-4.478438{col 26}{space 2} 12.14521{col 37}{space 1}   -0.37{col 46}{space 3}0.717{col 54}{space 4}-30.22513{col 67}{space 3} 21.26825
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 1.716089{col 26}{space 2} 1.395616{col 37}{space 1}    1.23{col 46}{space 3}0.237{col 54}{space 4}-1.242485{col 67}{space 3} 4.674664
{txt}{space 7}infmo {c |}{col 14}{res}{space 2}-1.687537{col 26}{space 2}  .299966{col 37}{space 1}   -5.63{col 46}{space 3}0.000{col 54}{space 4}-2.323437{col 67}{space 3}-1.051638
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2} .0006924{col 26}{space 2} .0038225{col 37}{space 1}    0.18{col 46}{space 3}0.859{col 54}{space 4}-.0074109{col 67}{space 3} .0087957
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2} 2.219442{col 26}{space 2} 1.326104{col 37}{space 1}    1.67{col 46}{space 3}0.114{col 54}{space 4}-.5917734{col 67}{space 3} 5.030658
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}6  {c |}{col 14}{res}{space 2}  3990.46{col 26}{space 2} 2085.954{col 37}{space 1}    1.91{col 46}{space 3}0.074{col 54}{space 4}-431.5646{col 67}{space 3} 8412.485
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 4700.501{col 26}{space 2} 518.8969{col 37}{space 1}    9.06{col 46}{space 3}0.000{col 54}{space 4} 3600.489{col 67}{space 3} 5800.513
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 3206.429{col 26}{space 2} 1489.983{col 37}{space 1}    2.15{col 46}{space 3}0.047{col 54}{space 4} 47.80682{col 67}{space 3} 6365.052
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 2569.147{col 26}{space 2} 1277.766{col 37}{space 1}    2.01{col 46}{space 3}0.062{col 54}{space 4}-139.5954{col 67}{space 3} 5277.889
{txt}{space 9}11  {c |}{col 14}{res}{space 2}  8594.33{col 26}{space 2} 1910.658{col 37}{space 1}    4.50{col 46}{space 3}0.000{col 54}{space 4} 4543.916{col 67}{space 3} 12644.74
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 1179.421{col 26}{space 2} 1326.436{col 37}{space 1}    0.89{col 46}{space 3}0.387{col 54}{space 4}-1632.497{col 67}{space 3} 3991.339
{txt}{space 9}13  {c |}{col 14}{res}{space 2}  6587.27{col 26}{space 2} 1257.574{col 37}{space 1}    5.24{col 46}{space 3}0.000{col 54}{space 4} 3921.333{col 67}{space 3} 9253.208
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-2750.486{col 26}{space 2} 3140.193{col 37}{space 1}   -0.88{col 46}{space 3}0.394{col 54}{space 4}-9407.398{col 67}{space 3} 3906.427
{txt}{space 9}17  {c |}{col 14}{res}{space 2}  1025.95{col 26}{space 2} 1800.238{col 37}{space 1}    0.57{col 46}{space 3}0.577{col 54}{space 4}-2790.384{col 67}{space 3} 4842.284
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-1442.856{col 26}{space 2} 3531.833{col 37}{space 1}   -0.41{col 46}{space 3}0.688{col 54}{space 4}-8930.008{col 67}{space 3} 6044.296
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 4593.353{col 26}{space 2} 2579.791{col 37}{space 1}    1.78{col 46}{space 3}0.094{col 54}{space 4}-875.5589{col 67}{space 3} 10062.26
{txt}{space 9}24  {c |}{col 14}{res}{space 2}  1023.67{col 26}{space 2} 1670.221{col 37}{space 1}    0.61{col 46}{space 3}0.549{col 54}{space 4}-2517.041{col 67}{space 3} 4564.381
{txt}{space 9}25  {c |}{col 14}{res}{space 2} 3806.351{col 26}{space 2} 1505.067{col 37}{space 1}    2.53{col 46}{space 3}0.022{col 54}{space 4} 615.7511{col 67}{space 3} 6996.952
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 20212.11{col 26}{space 2} 2976.079{col 37}{space 1}    6.79{col 46}{space 3}0.000{col 54}{space 4}  13903.1{col 67}{space 3} 26521.11
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 2741.715{col 26}{space 2}  828.424{col 37}{space 1}    3.31{col 46}{space 3}0.004{col 54}{space 4}  985.535{col 67}{space 3} 4497.896
{txt}{space 9}28  {c |}{col 14}{res}{space 2} 1238.248{col 26}{space 2} 1395.645{col 37}{space 1}    0.89{col 46}{space 3}0.388{col 54}{space 4}-1720.387{col 67}{space 3} 4196.883
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} 2.934144{col 26}{space 2} 1.201638{col 37}{space 1}    2.44{col 46}{space 3}0.027{col 54}{space 4} .3867852{col 67}{space 3} 5.481502
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 6  {c |}{col 14}{res}{space 2}-1.968064{col 26}{space 2} 1.057191{col 37}{space 1}   -1.86{col 46}{space 3}0.081{col 54}{space 4}-4.209208{col 67}{space 3} .2730804
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-2.328602{col 26}{space 2} .2531796{col 37}{space 1}   -9.20{col 46}{space 3}0.000{col 54}{space 4}-2.865319{col 67}{space 3}-1.791885
{txt}{space 9} 9  {c |}{col 14}{res}{space 2}-1.581714{col 26}{space 2} .7528427{col 37}{space 1}   -2.10{col 46}{space 3}0.052{col 54}{space 4} -3.17767{col 67}{space 3} .0142411
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-1.268212{col 26}{space 2} .6395512{col 37}{space 1}   -1.98{col 46}{space 3}0.065{col 54}{space 4}   -2.624{col 67}{space 3} .0875764
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-4.273845{col 26}{space 2} .9514657{col 37}{space 1}   -4.49{col 46}{space 3}0.000{col 54}{space 4}-6.290862{col 67}{space 3}-2.256828
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-.5898191{col 26}{space 2} .6695315{col 37}{space 1}   -0.88{col 46}{space 3}0.391{col 54}{space 4}-2.009163{col 67}{space 3} .8295244
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-3.260247{col 26}{space 2} .6031729{col 37}{space 1}   -5.41{col 46}{space 3}0.000{col 54}{space 4}-4.538916{col 67}{space 3}-1.981578
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 1.390646{col 26}{space 2} 1.584034{col 37}{space 1}    0.88{col 46}{space 3}0.393{col 54}{space 4}-1.967357{col 67}{space 3} 4.748648
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-.4942857{col 26}{space 2} .9124983{col 37}{space 1}   -0.54{col 46}{space 3}0.595{col 54}{space 4}-2.428696{col 67}{space 3} 1.440124
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .7488537{col 26}{space 2} 1.788705{col 37}{space 1}    0.42{col 46}{space 3}0.681{col 54}{space 4}-3.043032{col 67}{space 3} 4.540739
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-2.280871{col 26}{space 2} 1.288249{col 37}{space 1}   -1.77{col 46}{space 3}0.096{col 54}{space 4}-5.011837{col 67}{space 3} .4500949
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-.4906773{col 26}{space 2} .8234585{col 37}{space 1}   -0.60{col 46}{space 3}0.560{col 54}{space 4}-2.236331{col 67}{space 3} 1.254977
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-1.881024{col 26}{space 2} .7575068{col 37}{space 1}   -2.48{col 46}{space 3}0.024{col 54}{space 4}-3.486866{col 67}{space 3}-.2751812
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-9.999666{col 26}{space 2} 1.452501{col 37}{space 1}   -6.88{col 46}{space 3}0.000{col 54}{space 4}-13.07883{col 67}{space 3}-6.920502
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-1.353626{col 26}{space 2} .4124068{col 37}{space 1}   -3.28{col 46}{space 3}0.005{col 54}{space 4}-2.227889{col 67}{space 3}-.4793627
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-.5918358{col 26}{space 2} .6987641{col 37}{space 1}   -0.85{col 46}{space 3}0.409{col 54}{space 4}-2.073149{col 67}{space 3} .8894779
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-5718.539{col 26}{space 2} 2117.278{col 37}{space 1}   -2.70{col 46}{space 3}0.016{col 54}{space 4}-10206.97{col 67}{space 3} -1230.11
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.87094923
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 15 dropped
       Constraint 16 dropped
       Constraint 17 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped

       F(  9,    16) ={res} 7828.24
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 1.cid#c.year  2.cid#c.year  3.cid#c.year  4.cid#c.year  5.cid#c.year  ///
>          6.cid#c.year  7.cid#c.year  8.cid#c.year  9.cid#c.year  10.cid#c.year  ///
>                  11.cid#c.year  12.cid#c.year  13.cid#c.year  14.cid#c.year  15.cid#c.year  ///
>                  16.cid#c.year  17.cid#c.year  18.cid#c.year  19.cid#c.year  20.cid#c.year  ///
>                  21.cid#c.year  22.cid#c.year  23.cid#c.year  24.cid#c.year  25.cid#c.year  ///
>                  26.cid#c.year  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 15 dropped
       Constraint 16 dropped

       F(  9,    16) ={res} 7877.04
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-934.6874{col 49}     9{col 58} 1887.375{col 69} 1920.216
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 238) = {res}    52.23
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. reg phpnh prod k pop14 pop65 male lex infmo tobaco alcohc gdpg cid##c.year, vce(cluster cid)

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}{help j_robustsingular:F(9, 16) }         =  {res}        .
                                                {txt}Prob > F          = {res}         .
                                                {txt}R-squared         = {res}    0.8903
                                                {txt}Root MSE          =    {res} 7.0671

{txt}{ralign 78:(Std. Err. adjusted for {res:17} clusters in cid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       phpnh{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}prod {c |}{col 14}{res}{space 2}-.9954817{col 26}{space 2} .8983888{col 37}{space 1}   -1.11{col 46}{space 3}0.284{col 54}{space 4}-2.899981{col 67}{space 3} .9090175
{txt}{space 11}k {c |}{col 14}{res}{space 2} .3206831{col 26}{space 2} 1.186456{col 37}{space 1}    0.27{col 46}{space 3}0.790{col 54}{space 4}-2.194491{col 67}{space 3} 2.835858
{txt}{space 7}pop14 {c |}{col 14}{res}{space 2}-1.984572{col 26}{space 2} 4.959936{col 37}{space 1}   -0.40{col 46}{space 3}0.694{col 54}{space 4}-12.49917{col 67}{space 3} 8.530022
{txt}{space 7}pop65 {c |}{col 14}{res}{space 2} 1.474527{col 26}{space 2}  2.06846{col 37}{space 1}    0.71{col 46}{space 3}0.486{col 54}{space 4}-2.910411{col 67}{space 3} 5.859465
{txt}{space 8}male {c |}{col 14}{res}{space 2}-4.564982{col 26}{space 2} 12.10802{col 37}{space 1}   -0.38{col 46}{space 3}0.711{col 54}{space 4}-30.23283{col 67}{space 3} 21.10287
{txt}{space 9}lex {c |}{col 14}{res}{space 2} 1.628819{col 26}{space 2}  1.23291{col 37}{space 1}    1.32{col 46}{space 3}0.205{col 54}{space 4}-.9848326{col 67}{space 3}  4.24247
{txt}{space 7}infmo {c |}{col 14}{res}{space 2}-1.630901{col 26}{space 2} .2874873{col 37}{space 1}   -5.67{col 46}{space 3}0.000{col 54}{space 4}-2.240347{col 67}{space 3}-1.021455
{txt}{space 6}tobaco {c |}{col 14}{res}{space 2} .0006021{col 26}{space 2} .0038503{col 37}{space 1}    0.16{col 46}{space 3}0.878{col 54}{space 4}-.0075602{col 67}{space 3} .0087644
{txt}{space 6}alcohc {c |}{col 14}{res}{space 2} 2.348947{col 26}{space 2} 1.525016{col 37}{space 1}    1.54{col 46}{space 3}0.143{col 54}{space 4}-.8839419{col 67}{space 3} 5.581837
{txt}{space 8}gdpg {c |}{col 14}{res}{space 2}-.1122214{col 26}{space 2}  .271741{col 37}{space 1}   -0.41{col 46}{space 3}0.685{col 54}{space 4}-.6882865{col 67}{space 3} .4638437
{txt}{space 12} {c |}
{space 9}cid {c |}
{space 10}6  {c |}{col 14}{res}{space 2} 3971.865{col 26}{space 2} 2071.089{col 37}{space 1}    1.92{col 46}{space 3}0.073{col 54}{space 4}-418.6477{col 67}{space 3} 8362.378
{txt}{space 10}8  {c |}{col 14}{res}{space 2}  4840.02{col 26}{space 2} 392.7166{col 37}{space 1}   12.32{col 46}{space 3}0.000{col 54}{space 4} 4007.498{col 67}{space 3} 5672.542
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 3188.669{col 26}{space 2} 1496.516{col 37}{space 1}    2.13{col 46}{space 3}0.049{col 54}{space 4}  16.1974{col 67}{space 3} 6361.141
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 2669.722{col 26}{space 2} 1136.049{col 37}{space 1}    2.35{col 46}{space 3}0.032{col 54}{space 4} 261.4063{col 67}{space 3} 5078.037
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 8677.324{col 26}{space 2} 1811.559{col 37}{space 1}    4.79{col 46}{space 3}0.000{col 54}{space 4}  4836.99{col 67}{space 3} 12517.66
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 1158.653{col 26}{space 2} 1352.254{col 37}{space 1}    0.86{col 46}{space 3}0.404{col 54}{space 4}-1707.997{col 67}{space 3} 4025.302
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 6600.139{col 26}{space 2} 1246.544{col 37}{space 1}    5.29{col 46}{space 3}0.000{col 54}{space 4} 3957.584{col 67}{space 3} 9242.693
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-2718.778{col 26}{space 2}  3148.27{col 37}{space 1}   -0.86{col 46}{space 3}0.401{col 54}{space 4}-9392.813{col 67}{space 3} 3955.256
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 1102.828{col 26}{space 2} 1830.115{col 37}{space 1}    0.60{col 46}{space 3}0.555{col 54}{space 4}-2776.842{col 67}{space 3} 4982.497
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-1321.999{col 26}{space 2} 3619.074{col 37}{space 1}   -0.37{col 46}{space 3}0.720{col 54}{space 4}-8994.093{col 67}{space 3} 6350.095
{txt}{space 9}23  {c |}{col 14}{res}{space 2}  4600.27{col 26}{space 2} 2603.831{col 37}{space 1}    1.77{col 46}{space 3}0.096{col 54}{space 4}-919.6047{col 67}{space 3} 10120.15
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 918.8993{col 26}{space 2} 1767.192{col 37}{space 1}    0.52{col 46}{space 3}0.610{col 54}{space 4}-2827.381{col 67}{space 3}  4665.18
{txt}{space 9}25  {c |}{col 14}{res}{space 2} 4011.546{col 26}{space 2} 1436.913{col 37}{space 1}    2.79{col 46}{space 3}0.013{col 54}{space 4} 965.4273{col 67}{space 3} 7057.666
{txt}{space 9}26  {c |}{col 14}{res}{space 2}  19947.4{col 26}{space 2} 3281.317{col 37}{space 1}    6.08{col 46}{space 3}0.000{col 54}{space 4} 12991.32{col 67}{space 3} 26903.48
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 2658.596{col 26}{space 2}  882.448{col 37}{space 1}    3.01{col 46}{space 3}0.008{col 54}{space 4} 787.8897{col 67}{space 3} 4529.302
{txt}{space 9}28  {c |}{col 14}{res}{space 2} 1322.112{col 26}{space 2} 1300.977{col 37}{space 1}    1.02{col 46}{space 3}0.325{col 54}{space 4}-1435.836{col 67}{space 3} 4080.059
{txt}{space 12} {c |}
{space 8}year {c |}{col 14}{res}{space 2} 2.816315{col 26}{space 2} 1.318911{col 37}{space 1}    2.14{col 46}{space 3}0.049{col 54}{space 4} .0203481{col 67}{space 3} 5.612282
{txt}{space 12} {c |}
{space 2}cid#c.year {c |}
{space 9} 6  {c |}{col 14}{res}{space 2}-1.959479{col 26}{space 2} 1.050325{col 37}{space 1}   -1.87{col 46}{space 3}0.081{col 54}{space 4}-4.186069{col 67}{space 3} .2671103
{txt}{space 9} 8  {c |}{col 14}{res}{space 2}-2.398627{col 26}{space 2} .1963827{col 37}{space 1}  -12.21{col 46}{space 3}0.000{col 54}{space 4} -2.81494{col 67}{space 3}-1.982314
{txt}{space 9} 9  {c |}{col 14}{res}{space 2}-1.573697{col 26}{space 2} .7557699{col 37}{space 1}   -2.08{col 46}{space 3}0.054{col 54}{space 4}-3.175857{col 67}{space 3} .0284641
{txt}{space 9}10  {c |}{col 14}{res}{space 2}-1.319561{col 26}{space 2} .5683206{col 37}{space 1}   -2.32{col 46}{space 3}0.034{col 54}{space 4}-2.524347{col 67}{space 3}-.1147757
{txt}{space 9}11  {c |}{col 14}{res}{space 2}-4.315516{col 26}{space 2} .9016814{col 37}{space 1}   -4.79{col 46}{space 3}0.000{col 54}{space 4}-6.226995{col 67}{space 3}-2.404037
{txt}{space 9}12  {c |}{col 14}{res}{space 2}-.5798252{col 26}{space 2} .6820767{col 37}{space 1}   -0.85{col 46}{space 3}0.408{col 54}{space 4}-2.025763{col 67}{space 3} .8661128
{txt}{space 9}13  {c |}{col 14}{res}{space 2}-3.265669{col 26}{space 2} .5988863{col 37}{space 1}   -5.45{col 46}{space 3}0.000{col 54}{space 4}-4.535252{col 67}{space 3}-1.996087
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 1.375038{col 26}{space 2}  1.58866{col 37}{space 1}    0.87{col 46}{space 3}0.400{col 54}{space 4}-1.992771{col 67}{space 3} 4.742847
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-.5330173{col 26}{space 2}  .928653{col 37}{space 1}   -0.57{col 46}{space 3}0.574{col 54}{space 4}-2.501674{col 67}{space 3} 1.435639
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .6880709{col 26}{space 2} 1.833557{col 37}{space 1}    0.38{col 46}{space 3}0.712{col 54}{space 4}-3.198897{col 67}{space 3} 4.575039
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-2.284741{col 26}{space 2} 1.300271{col 37}{space 1}   -1.76{col 46}{space 3}0.098{col 54}{space 4}-5.041191{col 67}{space 3} .4717101
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-.4386591{col 26}{space 2} .8705527{col 37}{space 1}   -0.50{col 46}{space 3}0.621{col 54}{space 4}-2.284148{col 67}{space 3}  1.40683
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-1.983774{col 26}{space 2}  .726582{col 37}{space 1}   -2.73{col 46}{space 3}0.015{col 54}{space 4}-3.524059{col 67}{space 3}-.4434886
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-9.865998{col 26}{space 2}  1.60671{col 37}{space 1}   -6.14{col 46}{space 3}0.000{col 54}{space 4}-13.27207{col 67}{space 3}-6.459926
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-1.312598{col 26}{space 2} .4366418{col 37}{space 1}   -3.01{col 46}{space 3}0.008{col 54}{space 4}-2.238237{col 67}{space 3}-.3869583
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-.6336888{col 26}{space 2} .6533699{col 37}{space 1}   -0.97{col 46}{space 3}0.347{col 54}{space 4}-2.018771{col 67}{space 3} .7513934
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-5479.513{col 26}{space 2} 2243.475{col 37}{space 1}   -2.44{col 46}{space 3}0.027{col 54}{space 4}-10235.47{col 67}{space 3}-723.5583
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. display e(r2_a)
{res}.87065396
{txt}
{com}. testparm cid##c.year

{p 0 7}{space 1}{text:( 1)}{space 1} {res}6.cid = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 8.cid = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 9.cid = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 10.cid = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 11.cid = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 12.cid = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 13.cid = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 14.cid = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 17.cid = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 19.cid = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 23.cid = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 24.cid = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 25.cid = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 26.cid = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 27.cid = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 28.cid = 0{p_end}
{p 0 7}{space 1}{text:(17)}{space 1} year = 0{p_end}
{p 0 7}{space 1}{text:(18)}{space 1} 6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(19)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(20)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(21)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(22)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(23)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(24)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(25)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(26)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(27)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(28)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(29)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(30)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(31)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(32)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(33)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 16 dropped
       Constraint 17 dropped
       Constraint 18 dropped
       Constraint 19 dropped
       Constraint 20 dropped
       Constraint 21 dropped
       Constraint 22 dropped
       Constraint 23 dropped
       Constraint 24 dropped
       Constraint 25 dropped
       Constraint 26 dropped
       Constraint 27 dropped
       Constraint 28 dropped
       Constraint 29 dropped
       Constraint 30 dropped
       Constraint 31 dropped
       Constraint 32 dropped
       Constraint 33 dropped

       F( 10,    16) ={res}13725.64
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. testparm 1.cid#c.year  2.cid#c.year  3.cid#c.year  4.cid#c.year  5.cid#c.year  ///
>          6.cid#c.year  7.cid#c.year  8.cid#c.year  9.cid#c.year  10.cid#c.year  ///
>                  11.cid#c.year  12.cid#c.year  13.cid#c.year  14.cid#c.year  15.cid#c.year  ///
>                  16.cid#c.year  17.cid#c.year  18.cid#c.year  19.cid#c.year  20.cid#c.year  ///
>                  21.cid#c.year  22.cid#c.year  23.cid#c.year  24.cid#c.year  25.cid#c.year  ///
>                  26.cid#c.year  27.cid#c.year  28.cid#c.year 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}6.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 8.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 9.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} 10.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} 11.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} 12.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} 13.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} 14.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:( 9)}{space 1} 17.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(10)}{space 1} 19.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(11)}{space 1} 23.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(12)}{space 1} 24.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(13)}{space 1} 25.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(14)}{space 1} 26.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(15)}{space 1} 27.cid#c.year = 0{p_end}
{p 0 7}{space 1}{text:(16)}{space 1} 28.cid#c.year = 0{p_end}
{txt}       Constraint 3 dropped
       Constraint 4 dropped
       Constraint 6 dropped
       Constraint 7 dropped
       Constraint 9 dropped
       Constraint 16 dropped

       F( 10,    16) ={res}13774.25
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       284{col 27}-1248.252{col 38}-934.4215{col 49}    10{col 58} 1888.843{col 69} 1925.333
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat ovtest

{txt}Ramsey RESET test using powers of the fitted values of phpnh
       Ho:  model has no omitted variables
                 F(3, 237) = {res}    51.67
                  {txt}Prob > F =      {res}0.0000
{txt}
{com}. 
. ///Try this
> ///prais lhl prod pop14 pop65 male lex infmo tobaco alcohc gdpg cid##c.year, vce(cluster cid)
> 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}\\file\UsersW$\wrr15\Home\My Documents\My Files\ATANDA AKINWANDE\BCD PAPER\HEALTH ECONOMICS revision\NEW DATA AND PROGRAMS (20171021)\TABLE2&3.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}10 Nov 2017, 14:26:08
{txt}{.-}
{smcl}
{txt}{sf}{ul off}